Commit de6e90a8 authored by cynddl's avatar cynddl

Beautiful tags for lists of articles

parent df0f25e9
......@@ -128,10 +128,12 @@
</ul>
</td>
</tr>
{% if filter_view != 'flux' %}
{% if filter_view != 'flux' and article.tags.count %}
<tr id="row_tags_{{article.id}}" class="tags-row">
<td colspan="8">
<strong>Tags</strong> tags tags
{% for t in article.tags.all %}
<span class="badge badge-info">{{t}}</span>
{% endfor %}
</td>
</tr>
{% endif %}
......
......@@ -9,3 +9,4 @@
@import "components/modals.css";
@import "components/navigation.css";
@import "components/table.css";
@import "components/badge.css";
.badge.badge-default {
background-color: var(--color-medium-blue);
}
.badge.badge-info {
background-color: var(--color-light-blue);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment