-
Notifications
You must be signed in to change notification settings - Fork 4
Build: highlight the name of the version #625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
humitos
wants to merge
5
commits into
main
Choose a base branch
from
humitos/detach-version-name
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,51 +33,51 @@ | |
|
|
||
| {% 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 %}<a href="{{ build.get_absolute_url }}">{% endif %} | ||
| <span class="ui {% if is_page_title %}large{% endif %} breadcrumb"> | ||
| <span class="section"> | ||
| {# When used a a page title, link the sections independently #} | ||
| {% if is_page_title %} | ||
| <a href="{% url "projects_detail" build.project.slug %}?slug={{ build.get_version_slug }}"> | ||
| {% endif %} | ||
| <span class="ui {% if is_page_title %}large{% endif %} breadcrumb"> | ||
| <span class="section"> | ||
| <span class="ui grey text"> | ||
| {# When used a a page title, link the sections independently #} | ||
| {% 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 %} | ||
| Versions | ||
humitos marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| {% endblocktrans %} | ||
| {% endif %} | ||
| </span> | ||
| </span> | ||
|
|
||
| {% 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 %} | ||
| <span class="section"> | ||
| <span class="divider">/</span> | ||
| {% if is_page_title %} | ||
| <a href="{% url "projects_detail" build.project.slug %}?slug={{ build.get_version_slug }}"> | ||
| {% endif %} | ||
|
|
||
| {{ build.get_version_name }} | ||
humitos marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| {% if is_page_title %}</a>{% endif %} | ||
| </span> | ||
|
|
||
| {% if is_page_title %} | ||
| {# When used as a page title, show a section link for the filtered build list #} | ||
| <span class="divider">/</span> | ||
| {# Translators: this refers to a list of builds for a single project #} | ||
| <a class="section" | ||
| href="{% url "builds_project_list" build.project.slug %}?version__slug={{ build.get_version_slug }}"> | ||
| {% trans "Builds" %} | ||
| </a> | ||
| {% endif %} | ||
| </span> | ||
| {% if is_page_title %} | ||
| {# When used as a page title, show a section link for the filtered build list #} | ||
| <span class="divider">/</span> | ||
| {# Translators: this refers to a list of builds for a single project #} | ||
| <a class="section" href="{% url "builds_project_list" build.project.slug %}?version__slug={{ build.get_version_slug }}"> | ||
| {% trans "Builds" %} | ||
| </a> | ||
| {% endif %} | ||
| <span class="divider">/</span> | ||
| <span class="active section"> | ||
| {% if is_page_title %} | ||
| <a href="{{ build.get_absolute_url }}"> | ||
| {% endif %} | ||
| <span class="ui grey text"> | ||
| #{{ build.pk }} | ||
| <span class="active section"> | ||
| {% if is_page_title %}<a href="{{ build.get_absolute_url }}">{% endif %} | ||
| <span class="ui grey text">#{{ build.pk }}</span> | ||
| {% if is_page_title %}</a>{% endif %} | ||
|
Comment on lines
+87
to
+89
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. djlint isn't picking up on the conditional start/end tags and is breaking indenting. I believe in other templates we use |
||
| </span> | ||
| {% if is_page_title %} | ||
| </a> | ||
| {% endif %} | ||
| </span> | ||
| </span> | ||
| </a> | ||
| {% if not is_page_title %}</a>{% endif %} | ||
| {% if not is_page_title %}</a>{% endif %} | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.