Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
de6e90a8
Commit
de6e90a8
authored
Apr 28, 2017
by
cynddl
Browse files
Beautiful tags for lists of articles
parent
df0f25e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
apps/rp/templates/rp/article_list.html
View file @
de6e90a8
...
...
@@ -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 %}
...
...
static/src/admin.css
View file @
de6e90a8
...
...
@@ -9,3 +9,4 @@
@import
"components/modals.css"
;
@import
"components/navigation.css"
;
@import
"components/table.css"
;
@import
"components/badge.css"
;
static/src/components/badge.css
0 → 100644
View file @
de6e90a8
.badge.badge-default
{
background-color
:
var
(
--color-medium-blue
);
}
.badge.badge-info
{
background-color
:
var
(
--color-light-blue
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment