aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/news/list.html')
-rw-r--r--templates/news/list.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
index e95abe8..61625c1 100644
--- a/templates/news/list.html
+++ b/templates/news/list.html
@@ -4,6 +4,31 @@
<div class="second_menu">
<a href="/news/add/">Ajouter une actualité</a>
</div>
+<div class="quickview">
+<h2>Dernières visites</h2>
+
+<table>
+ {% for user in users %}
+ <tr>
+ <td><a href="{{url_for('view_user', user_id=user.id)}}">{{user.user_name}}</a></td>
+ <td>{{user.last_seen|format_date}}</td>
+ </tr>
+ {% endfor %}
+</table>
+
+<h2>Derniers commentaires</h2>
+<ul>
+ {% for comment in comments %}
+ <li><a href="{{url_for('view_user', user_id=comment.user_id)}}">{{comment.username}}</a>
+ {{comment.date|format_date}}<br/>
+ {{comment.content_cache|shortify|safe}} <a href="{{url_for('show_news', news_id=comment.news_id)}}#comments">[…]</a>
+ </li>
+ {% else %}
+ Pas de commentaires."
+ {% endfor %}
+</ul>
+</div>
+
<div class="news">
{% for news in news %}
<div class="news_head">