diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/static/css/screen.css b/src/colab-spb-theme-plugin/colab_spb_theme/static/css/screen.css index 9a9250e..aa0cbd5 100644 --- a/src/colab-spb-theme-plugin/colab_spb_theme/static/css/screen.css +++ b/src/colab-spb-theme-plugin/colab_spb_theme/static/css/screen.css @@ -588,3 +588,56 @@ form.signup { a.btn { margin: 2px 0 2px 0; } + +.colab-mailinglist-name { + font-size: 34px; +} + +.colab-thread-modified-time, +.colab-thread-modified-author { + color: #999; + font-size: 12px +} + +.colab-thread-modified-author:hover, +.colab-thread-modified-author:focus { + color: #999; + text-decoration: none; +} + +.colab-thread-subject { + font-weight: bold; + font-size: 18px; + color: #172738; +} + +.colab-thread-subject:hover, +.colab-thread-subject:focus { + color: #172738; + text-decoration: none; +} + +.colab-thread-latest-message { + font-size: 14px; + font-weight: normal; +} + +.colab-thread-order, +.colab-thread-total { + position: relative; + top: 15px; +} + +.colab-thread-order { + float: left; + margin-right: 10px; +} + +.colab-thread-order-select { + position: relative; + top: 10px; +} + +.btn-colab-mailinglist-members { + margin-bottom: 40px; +} diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/mailinglist-summary.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/mailinglist-summary.html new file mode 100644 index 0000000..7153a93 --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/mailinglist-summary.html @@ -0,0 +1,112 @@ +{% extends 'base.html' %} +{% load i18n tz superarchives %} + +{% block main-content %} +
+ {% block mailinglist_view_title %} +
+
+

Listas de discussão

+
+
+ +
+
+

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

+ +
+
+ +
+
+ {% with total=page_obj.paginator.count %} + Total de {{ total }} tópico{{ total|pluralize }} na lista de discussão + {% endwith %} +
+
+
+ {% trans "Order by" %}: + +
+
+
+
+ {% endblock %} + + {% block mailinglist_view_thread_list %} + {% for thread in thread_list %} +
+
+ {{ thread.latest_message.received_time|date:"d F Y" }} {% trans "at" %} {{thread.latest_message.received_time|date:"h:m" }} - {{thread.latest_message.author }} +
+

{{ thread.latest_message.subject_clean }}

+ {% with thread.latest_message.body|truncatechars:"85" as description %} + {{description | default_if_none:"a"}}
+ {% endwith %} +
+
+
+ {% endfor %} + {% endblock %} + + {% block mailinglist_view_paginator %} + {% if page_obj.has_other_pages %} +
+ +
+ {% endif %} + {% endblock %} +
+{% endblock %} 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 index 0248ea1..a9ff954 100644 --- 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 @@ -10,7 +10,7 @@ {% for mailinglist in lists %} {% if mailinglist.get_latest or mailinglist.get_most_relevant %} -

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

+

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

{% blocktrans with number_of_users=mailinglist.get_number_of_users %}{{ number_of_users }} members{% endblocktrans %}
@@ -63,7 +63,7 @@ {% if page_obj.has_previous %} {% if page_obj.previous_page_number > 1 %}
  • - {{ page_obj.number|add:-2 }} + {{ page_obj.number|add:-2 }}
  • {% endif %}
  • -- libgit2 0.21.2