{% extends "base.html" %} {% load compress static hc_extras %} {% block title %}Project Settings - {{ project }}{% endblock %} {% block content %} {% with project.transfer_request as transfer_request %}
{% for message in messages %}

{{ message }}

{% endfor %} {% if transfer_request and transfer_request.user == request.user %} {% with can_accept=transfer_request.can_accept %}

Ownership Transfer Request

{{ project.owner.email }} would like to transfer the ownership of this project to you.

{% if not can_accept %} {% with num_checks=project.num_checks num_available=request.profile.num_checks_available %}

This project has {{ num_checks }} check{{ num_checks|pluralize}}, but your account only has space for {{ num_available }} additional check{{ num_available|pluralize }}. To accept the transfer, please upgrade your account first!

{% endwith%} {% endif %}
{% csrf_token %}
{% endwith %} {% endif %}

Project Name

{{ project }} {% if rw %} Change Project Name {% endif %}
{% if project_name_updated %} {% endif %}

API Access

{% if project.api_key %} {% if show_api_keys %}

API key:

{{ project.api_key }}

{% if project.api_key_readonly %}

API key (read-only):

{{ project.api_key_readonly }}

Related links:

{% endif %} {% else %}
API access is enabled. {% csrf_token %} {% if rw %} {% endif %}
{% endif %} {% else %} API access is disabled.
{% csrf_token %}
{% endif %}
{% if api_keys_created %} {% endif %} {% if api_keys_revoked %} {% endif %}
{% with invite_suggestions=project.invite_suggestions %}

Team Access

{% if project.team.exists or invite_suggestions %} {% for m in project.member_set.all %} {% endfor %} {% if is_owner and invite_suggestions %} {% for user in invite_suggestions %} {% endfor %} {% endif %}
Email Role
Owner
{% if m.rw %} Member {% else %} Read-only {% endif %} {% if is_owner %} Remove {% endif %}
Add Users from Other Teams
{{ user.email }} Add to Team
{% else %}

Invite team members to your project. Share access to your checks and configured integrations without having to share login details.

{% endif %}
{% if is_owner %} {% if project.can_invite_new_users %} Invite a Team Member {% else %}
Team size limit reached. To invite new members by email, please upgrade your account!
{% endif %} {% endif %}
{% endwith %} {% if team_member_invited %} {% endif %} {% if team_member_duplicate %} {% endif %} {% if team_member_removed %} {% endif %}
{% if is_owner %}

Transfer Ownership

{% if transfer_request %}
{% csrf_token %}
Transfer initiated, awaiting confirmation from {{ transfer_request.user.email }}. {% else %} Transfer Project… Transfer this project to a team member. {% endif %}
{% if transfer_initiated %} {% endif %} {% if transfer_cancelled %} {% endif %}
{% endif %} {% if is_owner %}
{% csrf_token %}

Remove Project

Remove Project This will permanently remove project {{ project }}.
{% endif %}
{% if not transfer_request %} {% endif %} {% endwith %} {% endblock %} {% block scripts %} {% compress js %} {% endcompress %} {% endblock %}