From ee7d739074afb080efb8eb11a47dbdef10620720 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 21 Nov 2013 15:40:40 +0100 Subject: Add a quick access menu to the front page --- hyperkitty/templates/index.html | 57 +++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 19 deletions(-) (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/index.html b/hyperkitty/templates/index.html index 475d8be..8b9ca13 100644 --- a/hyperkitty/templates/index.html +++ b/hyperkitty/templates/index.html @@ -12,7 +12,7 @@
-
+

{% trans 'Lists' %}

  • @@ -46,7 +46,7 @@
-
+

{% trans 'Available lists' %} @@ -78,22 +78,23 @@ {% endif %} "> - {% if mlist.is_new %} - {% trans 'new' %} - {% endif %} - - {% if mlist.display_name %} - {{ mlist.display_name }} - {% else %} - {{ mlist.name|until:"@" }} - {% endif %} - - {% if mlist.is_private %} - private - {% elif mlist.recent_threads_count == 0 %} - inactive - {% endif %} + {% ifchanged mlist.name|first %}{% endifchanged %} + {% if mlist.is_new %} + {% trans 'new' %} + {% endif %} + + {% if mlist.display_name %} + {{ mlist.display_name }} + {% else %} + {{ mlist.name|until:"@" }} + {% endif %} + + {% if mlist.is_private %} + private + {% elif mlist.recent_threads_count == 0 %} + inactive + {% endif %}
{{ mlist.name }} @@ -130,7 +131,18 @@

No archived list yet.

{% endif %} -

+
+ +{% if all_lists|length > 10 %} +
+

+ +
+{% endif %}
@@ -150,6 +162,13 @@ $("table.lists tr.list").click(function(e) { document.location.href = $(this).find("a.list-name").attr("href"); }); + $(".initials").animate({ right: 0 }, {duration: 600}); + // Override the scrolling because we have a fixed header + $(".initials a").click(function (e) { + e.preventDefault(); + var target = $("a[name="+$(this).attr("href").substring(1)+"]"); + $(window).scrollTop(target.offset().top - 70); + }); }); -- cgit