Commit 84cf52e4 authored by okhin's avatar okhin 🚴

Updating article templates to add the new flags

parent b82a8565
Pipeline #2612 passed with stages
in 3 minutes and 4 seconds
......@@ -51,13 +51,13 @@
{% endfor %}
</p>
{% if article.archive %}
<span class="badge badge-info ml-1">{{ _("Archived") }}</span>
<span class="badge badge-info ml-1"><span class="glyphicon glyphicon-floppy-disk" aria-label="{{ _("Archived") }}"></span>
{% endif %}
{% if article.quote %}
<span class="badge badge-info ml-1">{{ _("Quotes us") }}</span>
<span class="badge badge-info ml-1"><span class="glyphicon glyphicon-comment" aria-label="{{ _("Quotes us") }}"></span>
{% endif %}
{% if article.speak %}
<span class="badge badge-info ml-1">{{ _("Speaks of us") }}</span>
<span class="badge badge-info ml-1"><span class="glyphicon glyphicon-bullhorn" aria-label="{{ _("Speaks about us") }}"></span>
{% endif %}
<p>{{object.extracts |markdown}}</p>
......
......@@ -37,7 +37,7 @@
<ul class="nav nav-integrated">
<li class="nav-item{% if filter_view == 'flux' %} active{% endif %}">
<a class="nav-link" href="{% url 'rp:article-list' filter_view='flux'%}">
Flux <img style="width: 2rem; margin-left: 0.5rem;" src="/static/img/cochon-01.png" alt="">
Flux <span class="glyphicon glyphicon-piggy-bank" aria-hidden="true"></span>
</a>
</li>
<li class="nav-item {% if filter_view == 'draft' %} active{% endif %}">
......@@ -83,6 +83,9 @@
<th>Title</th>
<th>Note</th>
<th>Added&nbsp;by</th>
<th>Archived</th>
<th>Quotes us</th>
<th>Speak of us</th>
<th>Actions<img class="inline-image ml-2" role="img" src="{% static 'img/jedi.svg' %}" /></th>
</tr>
</thead>
......@@ -116,6 +119,9 @@
{% endif %}
</td>
<td>{{article.created_by}}</td>
<td>{{article.archive}}</td>
<td>{{article.quote}}</td>
<td>{{article.speak}}</td>
<td class="actions-cell">
<ul class="actions-list">
{% if filter_view == 'flux' %}
......
......@@ -173,6 +173,15 @@
</p>
<h4><a href="{{article.url}}">{{article.title}}</a></h4>
{% comment %} <p class="subtitle">via Le Monde le {{article.created_at |date:'d/m'}}</p> {% endcomment %}
{% if article.archive %}
<span class="badge badge-info ml-1"><span class="glyphicon glyphicon-floppy-disk" aria-label="{{ _("Archived") }}"></span>
{% endif %}
{% if article.quote %}
<span class="badge badge-info ml-1"><span class="glyphicon glyphicon-comment" aria-label="{{ _("Quotes us") }}"></span>
{% endif %}
{% if article.speak %}
<span class="badge badge-info ml-1"><span class="glyphicon glyphicon-bullhorn" aria-label="{{ _("Speaks about us") }}"></span>
{% endif %}
<div class="read-more-box">
{{ article.extracts |markdown }}
......
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