diff options
Diffstat (limited to 'templates/recent_activities.html')
| -rw-r--r-- | templates/recent_activities.html | 193 |
1 files changed, 111 insertions, 82 deletions
diff --git a/templates/recent_activities.html b/templates/recent_activities.html index 84dd366..52a3968 100644 --- a/templates/recent_activities.html +++ b/templates/recent_activities.html @@ -1,99 +1,128 @@ -{% extends "base.html" %} +{% extends "base2.html" %} +{% load poll_extras %} {% block title %} {{ app_name }} {% endblock %} {% block additional_headers %} <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/stats.css" /> +<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/jquery-ui-1.8.18.custom.css" /> +<script src="{{ STATIC_URL }}jquery-1.7.1.min.js" type="text/javascript"></script> +<script src="{{ STATIC_URL }}jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script> + +<script> +$(function() { + $( "#accordion" ).accordion(); +}); +</script> {% endblock %} {% block content %} - <section id="most_active"> - <h2>Recently active discussions</h2> - {% for email in top_threads %} - <!-- Start thread --> - <div class="thread"> - <span class="thread_id">#{{forloop.counter}}</span> - <span class="thread_title">{{email.title}}</span> - <div class="thread_stats"> - <ul class="inline-block"> - {% if email.category_tag %} - <li class="type type_{{email.category_tag}}"> - <a href="/tag/{{email.category_tag}}"> {{email.category}} </a> - </li> - {% else %} - <li class="type type_{{email.category}}"> - <a href="/tag/{{email.category}}"> {{email.category}} </a> - </li> - {% endif %} - <li class="neutral"> 0 </li> - <li class="participant"> {{email.participants|join:", "}} </li> - <li class="discussion"> {{email.answers|length}} </li> - </ul> - </div> - </div> - <!-- End thread --> - {% endfor %} - </section> + <section id="recent_activities"> + <section id="most_active"> + <h2>Recently active discussions</h2> + {% for email in most_active_threads %} + <!-- Start thread --> + <div class="thread"> + <span class="thread_id">#{{forloop.counter}}</span> + <span class="thread_title">{{email.Subject}}</span> + <div class="thread_stats"> + <ul class="inline-block"> + {% if email.category_tag %} + <li class="type type_{{email.category_tag}}"> + <a href="/tag/{{email.category_tag}}"> {{email.category}} </a> + </li> + {% else %} + <li class="type type_{{email.category}}"> + <a href="/tag/{{email.category}}"> {{email.category}} </a> + </li> + {% endif %} + <li class="neutral"> 0 </li> + <li class="participant"> {{email.participants}} </li> + <li class="discussion"> {{email.answers}} </li> + </ul> + </div> + </div> + <!-- End thread --> + {% endfor %} + </section> - <section id="top_discussion"> - <h2>Top discussions the last 30 days</h2> - {% for email in most_active_threads %} - <!-- Start thread --> - <div class="thread"> - <span class="thread_id">#{{forloop.counter}}</span> - <span class="thread_title">{{email.title}}</span> - <div class="thread_stats"> - <ul class="inline-block"> - {% if email.category_tag %} - <li class="type type_{{email.category_tag}}"> - <a href="/tag/{{email.category_tag}}"> {{email.category}} </a> - </li> - {% else %} - <li class="type type_{{email.category}}"> - <a href="/tag/{{email.category_tag}}"> {{email.category}} </a> - </li> - {% endif %} - <li class="neutral"> 0 </li> - <li class="participant"> {{email.participants|join:", "}} </li> - <li class="discussion"> {{email.answers|length}} </li> - </ul> - </div> - </div> - <!-- End thread --> - {% endfor %} - </section> - <section id="discussion_marker"> - <h2>Prominent discussion maker</h2> - {% for author in top_author %} - <!-- Start discussion maker --> - <div class="maker"> - <div class="inline-block maker_id"> #{{forloop.counter}} </div> - <div class="inline-block gravatar"> - {% if author.avatar %} - <img src="{{author.avatar}}" alt="avatar" /> - {% endif %} - </div> - <div class="inline-block"> - <span class="marker_name">{{author.name}}</span> <br /> - <span class="score">+{{author.kudos}}</span> kudos - </div> - </div> - <!-- End discussion maker --> - {% endfor %} + <section id="top_discussion"> + <h2>Top discussions the last 30 days</h2> + {% for email in top_threads %} + <!-- Start thread --> + <div class="thread"> + <span class="thread_id">#{{forloop.counter}}</span> + <span class="thread_title">{{email.Subject}}</span> + <div class="thread_stats"> + <ul class="inline-block"> + {% if email.category_tag %} + <li class="type type_{{email.category_tag}}"> + <a href="/tag/{{email.category_tag}}"> {{email.category}} </a> + </li> + {% else %} + <li class="type type_{{email.category}}"> + <a href="/tag/{{email.category_tag}}"> {{email.category}} </a> + </li> + {% endif %} + <li class="neutral"> 0 </li> + <li class="participant"> {{email.participants}} </li> + <li class="discussion"> {{email.answers}} </li> + </ul> + </div> + </div> + <!-- End thread --> + {% endfor %} + </section> - <h2>Tag cloud</h2> + <section id="discussion_marker"> + <h2>Prominent discussion maker</h2> + {% for author in top_author %} + <!-- Start discussion maker --> + <div class="maker"> + <div class="inline-block maker_id"> #{{forloop.counter}} </div> + <div class="inline-block gravatar"> + {% if author.avatar %} + <img src="{{author.avatar}}" alt="avatar" /> + {% endif %} + </div> + <div class="inline-block"> + <span class="marker_name">{{author.name}}</span> <br /> + <span class="score">+{{author.kudos}}</span> kudos + </div> + </div> + <!-- End discussion maker --> + {% endfor %} + + <h2>Tag cloud</h2> + </section> + + <section id="discussion_by_topic"> + <h2>Discussion by topic the last 30 days</h2> + {% for category, thread in threads_per_category.items %} + <div> + <h2 class="category type_{{category}}"> {{category}} </h2> + <ul class="category_entry"> + {% for email in thread %} + <li>{{email.title}}</li> + {% endfor %} + </ul> + </div> + {% endfor %} + </section> </section> - - <section id="discussion_by_topic"> - <h2>Discussion by topic the last 30 days</h2> - {% for category, thread in threads_per_category.items %} + <section id="archives"> + {% for key, value in archives_length|sort %} + <h3>{{ key }}</h3> <div> - <h2 class="category type_{{category}}"> {{category}} </h2> - <ul class="category_entry"> - {% for email in thread %} - <li>{{email.title}}</li> + <ul> + {% for ar_month in value %} + <li> + <a href="/2/archives/{{list_address}}/{{key}}/{{ar_month}}"> + {{ ar_month|tomonth }} + </a> + </li> {% endfor %} </ul> </div> |
