Browse Source

Minor tweaks to (admin) display of comment tags

Just some minor adjustments now that I'm actually seeing these in
practice.
merge-requests/37/head
Deimos 6 years ago
parent
commit
62133026a9
  1. 7
      tildes/scss/modules/_comment.scss
  2. 6
      tildes/tildes/templates/macros/comments.jinja2

7
tildes/scss/modules/_comment.scss

@ -73,13 +73,12 @@
}
.comment-tags {
display: inline-flex;
align-items: center;
margin: 0 0 0 0.4rem;
list-style-type: none;
li {
margin-top: 0;
max-width: none;
}
}
@ -96,9 +95,7 @@
}
.comment-tag-count {
font-weight: bold;
font-size: 0.5rem;
margin-right: 0.4rem;
font-size: 0.6rem;
}
.comment-text {

6
tildes/tildes/templates/macros/comments.jinja2

@ -102,10 +102,10 @@
<li>
<span class="label label-comment-tag label-comment-tag-{{ tag_name|lower }}">{{ tag_name }}</span>
<span class="comment-tag-count">
x{{ count }}
({% for tag in comment.tags if tag.name == tag_name -%}
x{{ count }}:
{% for tag in comment.tags if tag.name == tag_name %}
{{ username_linked(tag.user.username) }}
{%- endfor %})
{% endfor %}
</span>
</li>
{% endfor %}

Loading…
Cancel
Save