-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Conversation
I find pretty hard to know what's the version of the current build on the build details' page, so I want to make it more visible. I'm following the same style/pattern we are following for the build id and I like it.
0395f1a
to
15a1700
Compare
I didn't think about the listing view, I don't think this quite works there. As a breadcrumb, The reason the verbose name of the version type is in there is to differentiate between versions and pull request builds: What you have here is going to make one style for versions ( The header change mostly works on the build detail view though, but I'd suggest we always have the extra
|
{% 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 %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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 {# fmt:off #}
/fmt:on
comments around these conditionals to fix this.
The build listing is still off. I don't think we should put a breadcrumb like this in the build list, from my comment here: For consistency that should still be It's probably easiest overall to just drop the include and have the build listing display what it was previously and the build detail page to use what you have here. The build detail page looks good now, the listing view is the only issue. This would also avoid the djlint formatting issue I noted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And some small adjustments, my main feedback is still at:
<span class="section"> | ||
<span class="divider">/</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ordering is off here, see https://fomantic-ui.com/collections/breadcrumb.html
<span class="section"> | |
<span class="divider">/</span> | |
<span class="divider">/</span> | |
<span class="section"> | |
<span class="section"> | ||
<span class="divider">/</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<span class="section"> | |
<span class="divider">/</span> | |
<span class="divider">/</span> | |
<span class="section"> |
I tend to agree here. However, the motivation of this PR was to visually distinct the word "Version" from the name of the version itself. So, if we are removing the breadcrumb here I would like to use a different color at least for the name of the version. An idea:
I want to highlight the name of the version somehow over the other elements of that row. |
I find pretty hard to know what's the version of the current build on the build details' page, so I want to make it more visible.
I'm following the same style/pattern we are following for the build id and I like it.