Fixup: Pluralisation of comment(s) in tracker

The definition of `.comments` for large screens currently overwrites the
one for small screens - `!important` to the rescue. Also `.label` is
already used elsewhere.
This commit is contained in:
Jonas Mueller 2019-08-07 08:57:02 +02:00 committed by Drew DeVault
parent 27fa6fecbd
commit c8ef2f9b11
2 changed files with 5 additions and 7 deletions

View File

@ -119,8 +119,8 @@ select.form-control {
.comments {
text-align: left !important;
& > .label {
display: inline;
& > .commentlabel {
display: inline !important;
}
}
}
@ -137,7 +137,7 @@ select.form-control {
&.comments {
text-align: center;
& > .label {
& > .commentlabel {
display: none;
}
}

View File

@ -162,17 +162,15 @@
</a>
</div>
<div class="comments">
<span class="icon">
<span class="icon_count">
{% if ticket.id in seen_ticket_ids or comment_counts.get(ticket.id, 0) == 0 %}
{{icon("comments-o")}}
{% else %}
{{icon("comments")}}
{% endif %}
</span>
<span class="count">
{{ comment_counts.get(ticket.id, 0) }}
</span>
<span class="label">
<span class="commentlabel">
{{ "comment" if comment_counts.get(ticket.id, 0) == 1
else "comments" }}
</span>