{% if repo.status != "deleted" %}
Danger
{% if repo.status == "archived" %}

This repository is archived. Unarchive it to make normal pushes, pulls, threads, and replies available again.

{% else %}

Archive this repository to make it read-only, or permanently delete it instead.

{% endif %}
{% if repo.status == "archived" %} {% else %} {% endif %}
{% if repo.status == "archived" %} {% with modal_id="confirm-repo-status", modal_title="Unarchive repository", modal_body="Unarchive this repository?", modal_confirm_text="Unarchive repository", modal_confirm_class="btn-primary", modal_desc="This makes normal pushes, pulls, threads, and replies available again." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% else %} {% with modal_id="confirm-repo-status", modal_title="Archive repository", modal_body="Archive this repository?", modal_confirm_text="Archive repository", modal_confirm_class="btn-warning", modal_desc="This makes pushes, pulls, threads, and replies read-only until you unarchive it." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% endif %} {% with modal_id="confirm-repo-delete", modal_title="Delete repository", modal_body="Delete this repository permanently?", modal_confirm_text="Delete repository", modal_desc="Code, pull history, and thread history will no longer be available from normal repo surfaces. Consider archiving or making it private instead." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% endif %}