From 089f72b237ea4cd8711e6ded643f43687fd39490 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sun, 18 Mar 2012 09:14:05 +0100 Subject: Start implementing the archiver with mongo in the background --- templates/base2.html | 6 +- templates/index2.html | 9 +- templates/month_view2.html | 110 +++++++++++++--------- templates/recent_activities.html | 193 ++++++++++++++++++++++----------------- 4 files changed, 187 insertions(+), 131 deletions(-) (limited to 'templates') diff --git a/templates/base2.html b/templates/base2.html index 8490bc6..c477a99 100644 --- a/templates/base2.html +++ b/templates/base2.html @@ -21,7 +21,11 @@ {% block header %}
{% if month_participants and month_discussions %} diff --git a/templates/index2.html b/templates/index2.html index 440e66f..ac2e3c7 100644 --- a/templates/index2.html +++ b/templates/index2.html @@ -3,11 +3,14 @@ {% block title %}{{ app_name }}{% endblock %} {% block content %} +

+ These are the list available on this server: +

diff --git a/templates/month_view2.html b/templates/month_view2.html index b006d35..b763a4d 100644 --- a/templates/month_view2.html +++ b/templates/month_view2.html @@ -1,4 +1,5 @@ {% extends "base2.html" %} +{% load poll_extras %} {% block title %}{{ app_name }}{% endblock %} @@ -17,59 +18,78 @@ {% block content %} - {% for email in threads %} - -
-
- {{email.title}} - {{email.age}} ago -
-
- {% if email.category_tag %} - - {% else %} -
- {{email.category}} +
+ {% for email in threads %} + +
+
+ {{email.Subject}} + {{email.Date}}
- {% endif %} -
- {% if email.avatar %} - avatar
+
+ {% if email.category_tag %} + + {% else %} + {% endif %} - {{email.author}} +
+ {% if email.avatar %} + avatar
+ {% endif %} + {{email.From}} +
+
+ + {{email.Content}} + +
-
- - {{email.body}} - +
+
    +
  • Tags:
  • + {% for tag in email.tags %} +
  • {{tag}}
  • + {% endfor %} +
+
    +
  • {{email.participants}} participants
  • +
  • {{email.answers}} comments
  • +
+
-
-
    -
  • Tags:
  • - {% for tag in email.tags %} -
  • {{tag}}
  • + + {% endfor %} +
+
+ {% for key, value in archives_length|sort %} +

{{ key }}

+
+ -
    -
  • {{email.participants|length}} participants
  • -
  • {{email.answers|length}} comments
  • -
-
+ {% endfor %}
- - {% endfor %} + {% endblock %} 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 %} + + + + + {% endblock %} {% block content %} -
-

Recently active discussions

- {% for email in top_threads %} - -
- #{{forloop.counter}} - {{email.title}} -
- -
-
- - {% endfor %} -
+
+
+

Recently active discussions

+ {% for email in most_active_threads %} + +
+ #{{forloop.counter}} + {{email.Subject}} +
+ +
+
+ + {% endfor %} +
-
-

Top discussions the last 30 days

- {% for email in most_active_threads %} - -
- #{{forloop.counter}} - {{email.title}} -
- -
-
- - {% endfor %} -
-
-

Prominent discussion maker

- {% for author in top_author %} - -
-
#{{forloop.counter}}
-
- {% if author.avatar %} - avatar - {% endif %} -
-
- {{author.name}}
- +{{author.kudos}} kudos -
-
- - {% endfor %} +
+

Top discussions the last 30 days

+ {% for email in top_threads %} + +
+ #{{forloop.counter}} + {{email.Subject}} +
+ +
+
+ + {% endfor %} +
-

Tag cloud

+
+

Prominent discussion maker

+ {% for author in top_author %} + +
+
#{{forloop.counter}}
+
+ {% if author.avatar %} + avatar + {% endif %} +
+
+ {{author.name}}
+ +{{author.kudos}} kudos +
+
+ + {% endfor %} + +

Tag cloud

+
+ +
+

Discussion by topic the last 30 days

+ {% for category, thread in threads_per_category.items %} +
+

{{category}}

+
    + {% for email in thread %} +
  • {{email.title}}
  • + {% endfor %} +
+
+ {% endfor %} +
- -
-

Discussion by topic the last 30 days

- {% for category, thread in threads_per_category.items %} +
+ {% for key, value in archives_length|sort %} +

{{ key }}

-

{{category}}

-
-- cgit