diff --git a/readthedocsext/theme/templates/builds/includes/build_name.html b/readthedocsext/theme/templates/builds/includes/build_name.html index 3524fb4e..245ffb1e 100644 --- a/readthedocsext/theme/templates/builds/includes/build_name.html +++ b/readthedocsext/theme/templates/builds/includes/build_name.html @@ -33,51 +33,47 @@ {% endcomment %} -{% load i18n %} +{% from i18n load trans blocktrans %} -{# 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 %} +{% if is_page_title %} + + - {% endif %} - - {% if build.is_external %} - {{ build.external_version_name | lower | capfirst }} - {{ build.get_version_name }} - {% else %} - {# Translators: this renders with the version name, example "Version latest" #} - {% blocktrans trimmed with version_name=build.get_version_name %} - Version {{ version_name }} - {% endblocktrans %} - {% endif %} - - {% if is_page_title %} + {% if build.is_external %} + {{ build.external_version_name | lower | capfirst }} + {{ build.get_version_name }} + {% else %} + {# Translators: this renders with the version name, example "Version latest" #} + {% blocktrans trimmed with version_name=build.get_version_name %} + Version {{ version_name }} + {% endblocktrans %} + {% 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 %} + / + - {% endif %} - - #{{ build.pk }} - - {% if is_page_title %} + #{{ build.pk }} - {% endif %} + - - -{% if not is_page_title %}{% endif %} +{% else %} + + + + + {# Translators: this shows the build number, example "Build #1234" #} + {% blocktrans trimmed with build_id=build.pk %} + Build #{{ build_id }} + {% endblocktrans %} + + + + +{% endif %} diff --git a/readthedocsext/theme/templates/builds/partials/build_list.html b/readthedocsext/theme/templates/builds/partials/build_list.html index 39669fa5..948229bf 100644 --- a/readthedocsext/theme/templates/builds/partials/build_list.html +++ b/readthedocsext/theme/templates/builds/partials/build_list.html @@ -64,7 +64,7 @@ data-bind="semanticui: { popup: { content: '{{ object.date }}', position: 'top center', delay: { show: 500 }, variation: 'small'}}"> {# Translators: this will read like "Started 1 month, 3 days ago" #} {% blocktrans with object.date|naturaltime as date trimmed %} - Started {{ date }} + {{ date }} {% endblocktrans %}