From 4c13d0ea5f429d2361e04ef013d65f28c29af2ac Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 14 Nov 2013 17:49:47 +0100 Subject: Improve front page appearance --- hyperkitty/templates/index.html | 60 ++++++++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 13 deletions(-) (limited to 'hyperkitty/templates/index.html') diff --git a/hyperkitty/templates/index.html b/hyperkitty/templates/index.html index 78804e1..357bde6 100644 --- a/hyperkitty/templates/index.html +++ b/hyperkitty/templates/index.html @@ -15,30 +15,59 @@

{% trans 'Lists' %}

-

{% trans 'Available lists' %}

+

+ {% trans 'Available lists' %} + {% if sort_mode == 'active' %} + ({% trans 'most active first' %}) + {% elif sort_mode == 'popular' %} + ({% trans 'most popular first' %}) + {% endif %} +

{% if all_lists %} - + + + + + {% for mlist in all_lists %} - + "> + - + {% endfor %}
ListDescriptionActivity in the past 30 days
{% trans 'List' %}{% trans 'Description' %}{% trans 'Activity in the past 30 days' %}
@@ -54,12 +83,13 @@ inactive {% endif %}
-
+ {{ mlist.name }} - + +
+ {{ mlist.description|default_if_none:"" }}
    @@ -80,6 +110,7 @@
@@ -104,6 +135,9 @@ $.parseJSON($(this).attr("data-chart-values")), {height: 30}); }); + $("table.lists tr.list").click(function(e) { + document.location.href = $(this).find("a.list-name").attr("href"); + }); }); -- cgit