From 7ef23c1848e8a67c9fb0d9168f1cbe5708788305 Mon Sep 17 00:00:00 2001 From: Carlos Oliveira Date: Mon, 16 Nov 2015 15:43:18 -0200 Subject: [PATCH] New label to thread dashboard --- src/colab-spb-theme-plugin/colab_spb_theme/templates/superarchives/thread-dashboard.html | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+), 0 deletions(-) create mode 100644 src/colab-spb-theme-plugin/colab_spb_theme/templates/superarchives/thread-dashboard.html diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/superarchives/thread-dashboard.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/superarchives/thread-dashboard.html new file mode 100644 index 0000000..0248ea1 --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/superarchives/thread-dashboard.html @@ -0,0 +1,101 @@ +{% extends 'base.html' %} +{% load i18n %} + +{% block title %}Listas de discussão{% endblock %} + +{% block main-content %} +
+

Listas de discussão

+
+ + {% for mailinglist in lists %} + {% if mailinglist.get_latest or mailinglist.get_most_relevant %} +

{{ mailinglist.name|title|lower }} {% if mailinglist.description %} ({{ mailinglist.description }}){% endif %}

+ +
+ +
+
+

{% trans 'latest'|title %}

+
    + {% for thread in mailinglist.get_latest %} + {% include "message-preview.html" with result=thread.latest_message %} + {% endfor %} +
+ +
+ +
+

{% trans 'most relevant'|title %}

+
    + {% for thread in mailinglist.get_most_relevant %} + {% include "message-preview.html" with result=thread %} + {% endfor %} +
+ +
+
+ + + {% endif %} + {% endfor %} + + {% if page_obj.has_other_pages %} +
+ +
+ {% endif %} +
+{% endblock %} -- libgit2 0.21.2