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:
parent
27fa6fecbd
commit
c8ef2f9b11
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue