From fa04cb6fb6da7861c6d23991a5c2636e5b2a641f Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 6 Feb 2013 21:29:42 +0100 Subject: Refactoring of HTML tags and CSS classes --- hyperkitty/templates/message.html | 2 +- hyperkitty/templates/messages/first_email.html | 7 -- hyperkitty/templates/messages/like_form.html | 12 ++-- hyperkitty/templates/messages/message.html | 96 ++++++++++++++------------ hyperkitty/templates/thread.html | 20 +++--- 5 files changed, 67 insertions(+), 70 deletions(-) delete mode 100644 hyperkitty/templates/messages/first_email.html (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/message.html b/hyperkitty/templates/message.html index c4df974..10e71ec 100644 --- a/hyperkitty/templates/message.html +++ b/hyperkitty/templates/message.html @@ -24,7 +24,7 @@
- {% include 'messages/first_email.html' with first_mail=message %} + {% include 'messages/message.html' with email=message unfolded='True' %}
diff --git a/hyperkitty/templates/messages/first_email.html b/hyperkitty/templates/messages/first_email.html deleted file mode 100644 index 50e0371..0000000 --- a/hyperkitty/templates/messages/first_email.html +++ /dev/null @@ -1,7 +0,0 @@ -{% load gravatar %} - -
- {% include 'messages/message.html' with email=first_mail unfolded='True' %} -
- -{# vim: set noet: #} diff --git a/hyperkitty/templates/messages/like_form.html b/hyperkitty/templates/messages/like_form.html index 40b85c0..c27eaeb 100644 --- a/hyperkitty/templates/messages/like_form.html +++ b/hyperkitty/templates/messages/like_form.html @@ -1,15 +1,11 @@
{% csrf_token %} -
  • + +{{ object.likes }}/-{{ object.dislikes }} -
  • -
  • - Like -
  • -
  • - Dislike -
  • + + Like + Dislike
    {# vim: set noet: #} diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index 89ecda7..4e37290 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -2,52 +2,41 @@ {% load gravatar %} {% load hk_generic %} -
    - {% endif %} - {% include "messages/reply_form.html" with mlist_fqdn=list_address message_id_hash=email.message_id_hash %} - + + + +
    {# vim: set noet: #} diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index 3cc3819..71e9da2 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -35,7 +35,7 @@
    - {% include 'messages/first_email.html' %} + {% include 'messages/message.html' with email=first_mail unfolded='True' %}

    @@ -48,14 +48,16 @@ {% endif %}

    - {% for email in replies %} -
    - - {% include 'messages/message.html' %} - +
    + {% for email in replies %} +
    + + {% include 'messages/message.html' %} + +
    + {% endfor %}
    - {% endfor %}
    @@ -79,7 +81,7 @@