diff --git a/readthedocsext/theme/templates/builds/includes/build_name.html b/readthedocsext/theme/templates/builds/includes/build_name.html index 3524fb4e..188b7e6e 100644 --- a/readthedocsext/theme/templates/builds/includes/build_name.html +++ b/readthedocsext/theme/templates/builds/includes/build_name.html @@ -33,51 +33,60 @@ {% endcomment %} -{% load i18n %} +{% load trans blocktrans from i18n %} {# When not a page title, treat the entire breadcrumb as a link to the build #} {% if not is_page_title %}{% endif %} - - + + {# When used a a page title, link the sections independently #} - {% if is_page_title %} - - {% endif %} + {# Translators: this renders with the version name, example "Version latest" #} + {% if is_page_title %} + + {% endif %} + {% blocktrans trimmed %} + Versions + {% endblocktrans %} + {% if is_page_title %}{% endif %} + {% if build.is_external %} - {{ build.external_version_name | lower | capfirst }} - {{ build.get_version_name }} + + / + {% if is_page_title %} + + {% endif %} + {{ build.external_version_name | lower | capfirst }} + {{ build.get_version_name }} + {% if is_page_title %}{% endif %} + {% else %} - {# Translators: this renders with the version name, example "Version latest" #} - {% blocktrans trimmed with version_name=build.get_version_name %} - Version {{ version_name }} - {% endblocktrans %} + + / + {% if is_page_title %} + + {% endif %} + + {{ build.get_version_name }} + + {% if is_page_title %}{% endif %} + {% endif %} {% if is_page_title %} + {# When used as a page title, show a section link for the filtered build list #} + / + {# Translators: this refers to a list of builds for a single project #} + + {% trans "Builds" %} {% endif %} - - {% if is_page_title %} - {# When used as a page title, show a section link for the filtered build list #} / - {# Translators: this refers to a list of builds for a single project #} - - {% trans "Builds" %} - - {% endif %} - / - - {% if is_page_title %} - - {% endif %} - - #{{ build.pk }} + + {% if is_page_title %}{% endif %} + #{{ build.pk }} + {% if is_page_title %}{% endif %} - {% if is_page_title %} - - {% endif %} - - -{% if not is_page_title %}{% endif %} + {% if not is_page_title %}{% endif %}