From d458fb6dcdf464488e008c6eff316a5bcfc077b6 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Fri, 12 Jul 2013 13:00:29 +0200 Subject: Reorganize the overview page in columns --- .../static/hyperkitty/css/hyperkitty-overview.css | 8 ++- hyperkitty/templates/overview.html | 67 +++++++++------------- 2 files changed, 33 insertions(+), 42 deletions(-) diff --git a/hyperkitty/static/hyperkitty/css/hyperkitty-overview.css b/hyperkitty/static/hyperkitty/css/hyperkitty-overview.css index 02f866a..a4f0a8e 100644 --- a/hyperkitty/static/hyperkitty/css/hyperkitty-overview.css +++ b/hyperkitty/static/hyperkitty/css/hyperkitty-overview.css @@ -11,6 +11,7 @@ font-size: 20px; line-height: 28px; margin-bottom: 0.5em; + margin-top: 0; text-align: center; } @@ -46,7 +47,6 @@ #overview .widget { padding: 1em; - padding-bottom: 0; border: 1px solid #ddd; -webkit-border-radius: 10px; -moz-border-radius: 10px; @@ -54,6 +54,10 @@ margin: 1em 0; } +#overview .thread { + margin: 1.5em 0 0 0; +} + #overview .thread-stats { margin-left: 3em; } @@ -118,6 +122,8 @@ font-size: 105%; line-height: 105%; margin: 1.5em 0 0.5em 0; + padding-left: 1em; + padding-right: 1em; } #discussion-by-category h4.first { margin-top: 0; diff --git a/hyperkitty/templates/overview.html b/hyperkitty/templates/overview.html index 065bfc9..4966a01 100644 --- a/hyperkitty/templates/overview.html +++ b/hyperkitty/templates/overview.html @@ -31,30 +31,15 @@

+
-

Recently active discussions

{% for thread in most_active_threads %} {% include "threads/summary_thread.html" with counter=forloop.counter %} {% endfor %}
-
-
-
-

Most active discussions

- {% for thread in top_threads %} - {% include "threads/summary_thread.html" with counter=forloop.counter %} - {% endfor %} -
-
- -
- -
- -
-
- -
-
-

Discussion by category

- {% for category, threads in threads_by_category.items %} -

{{ category.name|upper }} -

- {% for thread in threads %} - {% include "threads/summary_thread.html" %} - {% endfor %} - {% empty %} -

No category has been set this month (yet).

- {% endfor %} -
-
-
- -
- -

Most active posters

{% for poster in top_posters %} @@ -106,9 +68,32 @@
{% endfor %} +
+
+ +
+

Most active discussions

+ {% for thread in top_threads %} + {% include "threads/summary_thread.html" with counter=forloop.counter %} + {% endfor %} +
+ +
+

Discussion by category

+ {% for category, threads in threads_by_category.items %} +

{{ category.name|upper }} +

+ {% for thread in threads %} + {% include "threads/summary_thread.html" %} + {% endfor %} + {% empty %} +

No category has been set this month (yet).

+ {% endfor %} +
-
{% if top_author %}

Prominent discussion maker

@@ -136,8 +121,8 @@

Tag cloud

{% endif %} -
+
-- cgit