diff --git a/readthedocs/templates/projects/project_version_detail.html b/readthedocs/templates/projects/project_version_detail.html index 593e4475043..b10c23d1307 100644 --- a/readthedocs/templates/projects/project_version_detail.html +++ b/readthedocs/templates/projects/project_version_detail.html @@ -1,6 +1,7 @@ {% extends "projects/base_project.html" %} {% load i18n %} +{% load privacy_tags %} {% block title %}{{ version.slug }} - {{ version.project.name }}{% endblock %} @@ -15,6 +16,20 @@ {% block content %}

Editing {{ version.slug }}

+ + {% if request.user|is_admin:project %} + {% if not version.active and version.built %} +

+ {% url "project_version_delete_html" project.slug version.slug as version_delete_url %} + {% blocktrans trimmed %} + This version is inactive but its documentation is still available online. + You can delete this version's documentation if you want to remove it completely. + {% endblocktrans %} +

+ {% endif %} + {% endif %} + +
{% csrf_token %} {{ form.as_p }} diff --git a/readthedocs/templates/projects/project_version_list.html b/readthedocs/templates/projects/project_version_list.html index f85f3be0de7..695770b196e 100644 --- a/readthedocs/templates/projects/project_version_list.html +++ b/readthedocs/templates/projects/project_version_list.html @@ -104,9 +104,6 @@

{% trans "Inactive Versions" %}

{% if request.user|is_admin:project %} {% endif %}