diff --git a/readthedocs/templates/projects/project_version_list.html b/readthedocs/templates/projects/project_version_list.html index 0b4b6b32b91..d91d4fc918c 100644 --- a/readthedocs/templates/projects/project_version_list.html +++ b/readthedocs/templates/projects/project_version_list.html @@ -21,45 +21,52 @@
-

{% trans "Active Versions" %}

-
-
    - {% for version in active_versions|sort_version_aware %} - {% block active-versions %} -
  • - {# Link to the docs #} - {{ version.slug }} - - {% if request.user|is_admin:project %} - - {{ version.get_privacy_level_display }} - - {% endif %} - - {% if not version.slug in version.identifier %} - {{ version.identifier_friendly|truncatechars:24 }} - {% endif %} - - {% if request.user|is_admin:project %} - - {% else %} - - {% endif %} - -
  • - {% endblock active-versions %} - - {% empty %} -

    - {% trans "No active versions." %} -

    - {% endfor %} -
+ +
+

{% trans "Active Versions" %}

+ +
+
+
    + {% for version in active_versions|sort_version_aware %} + {% block active-versions %} +
  • + {# Link to the docs #} + {{ version.slug }} + + {% if request.user|is_admin:project %} + + {{ version.get_privacy_level_display }} + + {% endif %} + + {% if not version.slug in version.identifier %} + {{ version.identifier_friendly|truncatechars:24 }} + {% endif %} + + {% if request.user|is_admin:project %} + + {% else %} + + {% endif %} + +
  • + {% endblock active-versions %} + + {% empty %} +

    + {% trans "No active versions." %} +

    + {% endfor %} +
+
+
+
@@ -68,42 +75,46 @@

{% trans "Active Versions" %}

{% if inactive_versions %} -

{% trans "Inactive Versions" %}

-
-
    - {% for version in inactive_versions|sort_version_aware %} +
    +

    {% trans "Inactive Versions" %}

    +
    - {% block inactive-versions %} -
  • - {# Link to the docs #} - {{ version.slug }} +
    +
    +
      + {% for version in inactive_versions|sort_version_aware %} + {% block inactive-versions %} +
    • + {# Link to the docs #} + {{ version.slug }} - {% if request.user|is_admin:project %} - - {{ version.get_privacy_level_display }} - - {% endif %} - {% if not version.slug in version.identifier_friendly %} - {{ version.identifier_friendly|truncatechars:24 }} - {% endif %} + {% if request.user|is_admin:project %} + + {{ version.get_privacy_level_display }} + + {% endif %} - {% if request.user|is_admin:project %} -
        - {% if version.built %} -
      • {% trans "Clean" %}
      • + {% if not version.slug in version.identifier_friendly %} + {{ version.identifier_friendly|truncatechars:24 }} {% endif %} -
      • {% trans "Edit" %}
      • -
      - {% endif %} - - -
    • - {% endblock inactive-versions %} - - {% endfor %} -
    + + {% if request.user|is_admin:project %} + + {% endif %} + +
  • + {% endblock inactive-versions %} + + {% endfor %} +
+
{% endif %}