{% 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 memberships or invite_suggestions %} {% for m in memberships %} {% endfor %} {% if is_manager and invite_suggestions %} {% for user in invite_suggestions %} {% endfor %} {% endif %}
Email Role
Owner
{{ m.get_role_display }} {% if is_manager and m.user != request.user %} 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_manager %} {% if project.can_invite_new_users %} Invite a Team Member {% else %}
Team size limit reached. {% if is_owner %} To invite new members by email, please upgrade your account! {% else %} To invite new members, please ask project's owner to upgrade their account. {% endif %}
{% 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 is_owner and not transfer_request %} {% endif %} {% endwith %} {% endblock %} {% block scripts %} {% compress js %} {% endcompress %} {% endblock %}