summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/overview.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-11-20 10:14:51 -0800
committerAurélien Bompard <aurelien@bompard.org>2013-11-20 10:14:51 -0800
commitc8ef5f4be18890bfee301df3bfd41e4f0434451e (patch)
tree243ce6eac57d016569bd2dc014f4da40ab724a36 /hyperkitty/templates/overview.html
parentf38e0d666c86220089a6d5afe940aabb762a0a21 (diff)
parent174ab43c1c2bca4d01626a73379d0f2aed23b2d9 (diff)
downloadhyperkitty-c8ef5f4be18890bfee301df3bfd41e4f0434451e.tar.gz
hyperkitty-c8ef5f4be18890bfee301df3bfd41e4f0434451e.tar.xz
hyperkitty-c8ef5f4be18890bfee301df3bfd41e4f0434451e.zip
Merge pull request #10 from mairin/master
List overview redesign
Diffstat (limited to 'hyperkitty/templates/overview.html')
-rw-r--r--hyperkitty/templates/overview.html139
1 files changed, 77 insertions, 62 deletions
diff --git a/hyperkitty/templates/overview.html b/hyperkitty/templates/overview.html
index 8d521a6..098e609 100644
--- a/hyperkitty/templates/overview.html
+++ b/hyperkitty/templates/overview.html
@@ -18,66 +18,71 @@
{% include 'threads/month_list.html' %}
<section id="overview" class="span10">
-
- <section id="graph">
- <h2>Activities on the list over the last 30 days</h2>
- <ul class="list-stats inline">
- <li><span class="participant">{{ num_participants }} participants</span></li>
- <li><span class="discussion">{{ num_threads }} discussions</span></li>
- </ul>
-
- <div id="fig" />
- </section>
-
- <p class="thread-new">
- <a href="{% url "message_new" mlist_fqdn=mlist.name %}"
- class="thread-new btn{% if not user.is_authenticated %} disabled" title="You must be logged-in to create a thread.{% endif %}"
- ><strong>+</strong> Start a new thread</a>
- </p>
-
- <div class="row-fluid">
- <div class="span6"> <!-- Column 1 -->
-
- <section id="most-active" class="widget">
- <h3>Recently active discussions</h3>
- {% for thread in most_active_threads %}
- {% include "threads/summary_thread.html" with counter=forloop.counter %}
- {% endfor %}
- </section>
-
- <section id="popular-threads" class="widget">
- <h3>Most popular discussions</h3>
- {% for thread in pop_threads %}
- {% include "threads/summary_thread.html" with counter=forloop.counter %}
- {% empty %}
- <p>No vote has been cast this month (yet).</p>
- {% endfor %}
- </section>
-
- <section id="discussion-maker" class="widget">
- <h3>Most active posters</h3>
- {% for poster in top_posters %}
- <div class="maker">
- <div class="inline-block maker-id">
- #{{forloop.counter}}
- </div>
- <div class="inline-block gravatar">
- {% gravatar poster.email 40 %}
- <br />
- </div>
- <div class="inline-block">
- <span class="maker-name">{{ poster.name }}</span>
- <br />
- <span class="score">{{ poster.count }}</span> posts
- </div>
- </div>
- {% endfor %}
- </section>
-
- </div>
- <div class="span6"> <!-- Column 2 -->
-
- <section id="top-discussion" class="widget">
+
+ <section id="title">
+ <h2>{{ mlist.display_name }}</h2>
+ <p id="description">{{ mlist.description}}</p>
+
+ <section id="statistics">
+
+ <div id="chart"></div>
+ <p class="caption">Post volume over the past <strong>30</strong> days.</p>
+
+ <p class="thread-new">
+ <a href="{% url "message_new" mlist_fqdn=mlist.name %}"
+ class="thread-new btn{% if not user.is_authenticated %} disabled" title="You must be logged-in to create a thread.{% endif %}">
+ <strong>+</strong> Start a new thread</a>
+ </p>
+
+ <h3>Activity Summary</h3>
+ <p>The following statistics are from the past <strong>30</strong> days:</p>
+ <ul class="list-stats">
+ <li><span class="participant">{{ num_participants }} participants</span></li>
+ <li><span class="discussion">{{ num_threads }} discussions</span></li>
+ </ul>
+
+ <section id="discussion-maker" class="widget">
+ <h3>Most active posters</h3>
+ {% for poster in top_posters %}
+ <div class="maker">
+ <div class="inline-block maker-id">
+ #{{forloop.counter}}
+ </div>
+ <div class="inline-block gravatar">
+ {% gravatar poster.email 40 %}
+ <br />
+ </div>
+ <div class="inline-block">
+ <span class="maker-name">{{ poster.name }}</span>
+ <span class="score">{{ poster.count }}</span> posts
+ </div>
+ </div>
+ {% endfor %}
+ </section>
+
+ <!-- <div id="fig"></div> -->
+ </section>
+ </section>
+
+ <section id="discussions">
+
+ <section id="most-active" class="widget">
+ <h3>Recently active discussions</h3>
+ {% for thread in most_active_threads %}
+ {% include "threads/summary_thread.html" %} <!-- cut - with counter=forloop.counter -->
+ {% endfor %}
+ </section>
+
+ <section id="popular-threads" class="widget">
+ <h3>Most popular discussions</h3>
+ {% for thread in pop_threads %}
+ {% include "threads/summary_thread.html" with counter=forloop.counter %}
+ {% empty %}
+ <p>No vote has been cast this month (yet).</p>
+ {% endfor %}
+ </section>
+
+ <section id="top-discussion" class="widget">
<h3>Most active discussions</h3>
{% for thread in top_threads %}
{% include "threads/summary_thread.html" with counter=forloop.counter %}
@@ -129,8 +134,7 @@
</section>
{% endif %}
- </div>
- </div>
+ </section>
</section>
@@ -141,6 +145,7 @@
{% block additionaljs %}
<script type="text/javascript" >
+/*
$(function() {
activity_graph(
"#fig",
@@ -149,6 +154,16 @@
"{{ archives_baseurl }}"
)
});
+*/
+
+ $(function() {
+ chart(
+ "#chart",
+ ["{{days|join:'","'}}"],
+ {{evolution}},
+ "{{ archives_baseurl }}"
+ )
+ });
</script>
{% endblock %}