diff options
Diffstat (limited to 'hyperkitty')
-rw-r--r-- | hyperkitty/templates/overview.html | 132 | ||||
-rw-r--r-- | hyperkitty/templates/threads/summary_thread.html | 12 |
2 files changed, 72 insertions, 72 deletions
diff --git a/hyperkitty/templates/overview.html b/hyperkitty/templates/overview.html index e47feaa..56e86f6 100644 --- a/hyperkitty/templates/overview.html +++ b/hyperkitty/templates/overview.html @@ -19,77 +19,77 @@ <section id="overview" class="span10"> - <section id="title"> - <h2> + <section id="title"> + <h2> {% if mlist.display_name %} {{ mlist.display_name }} {% else %} {{ mlist.name|until:"@" }} {% endif %} </h2> - <p id="description">{{ mlist.description|default_if_none:"" }}</p> - - <section id="statistics"> - - <div class="chart"> - <img alt="Loading..." class="ajaxloader" src="{{ STATIC_URL }}hyperkitty/img/ajax-loader.gif" /> - </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">{{ mlist.recent_participants_count }} participants</span></li> - <li><span class="discussion">{{ mlist.recent_threads_count }} 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> - - </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"> + <p id="description">{{ mlist.description|default_if_none:"" }}</p> + + <section id="statistics"> + + <div class="chart"> + <img alt="Loading..." class="ajaxloader" src="{{ STATIC_URL }}hyperkitty/img/ajax-loader.gif" /> + </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">{{ mlist.recent_participants_count }} participants</span></li> + <li><span class="discussion">{{ mlist.recent_threads_count }} 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> + + </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 %} @@ -141,7 +141,7 @@ </section> {% endif %} - </section> + </section> </section> diff --git a/hyperkitty/templates/threads/summary_thread.html b/hyperkitty/templates/threads/summary_thread.html index 5d0972c..895c5c4 100644 --- a/hyperkitty/templates/threads/summary_thread.html +++ b/hyperkitty/templates/threads/summary_thread.html @@ -4,19 +4,19 @@ <div class="thread"> <span class="thread-title"> - {% if counter %}<span class="thread-id">#{{counter}}</span>{% endif %} - <a name="{{thread.thread_id}}" + {% if counter %}<span class="thread-id">#{{counter}}</span>{% endif %} + <a name="{{thread.thread_id}}" href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}" > - {% if thread.category_widget %} + {% if thread.category_widget %} <span class="label category" style="background-color:{{thread.category_widget.color}}"> {{ thread.category_widget.name|upper }} </span> - {% endif %} - {% if thread.unread %} + {% endif %} + {% if thread.unread %} <i class="unread icon-eye-close" title="New messages in this thread"></i> {% endif %} - {{ thread.subject|strip_subject:mlist }}</a> + {{ thread.subject|strip_subject:mlist }}</a> </span> <div class="thread-stats"> <ul class="inline-block"> |