summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/templates/ajax')
-rw-r--r--hyperkitty/templates/ajax/last_views.html80
-rw-r--r--hyperkitty/templates/ajax/replies.html18
-rw-r--r--hyperkitty/templates/ajax/temp_message.html54
3 files changed, 73 insertions, 79 deletions
diff --git a/hyperkitty/templates/ajax/last_views.html b/hyperkitty/templates/ajax/last_views.html
index aeea651..a3e1786 100644
--- a/hyperkitty/templates/ajax/last_views.html
+++ b/hyperkitty/templates/ajax/last_views.html
@@ -2,44 +2,42 @@
{% load i18n %}
{% load hk_generic %}
- {% if last_views %}
- <table class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th></th>
- <th>Subject</th>
- <th>Original author</th>
- <th>Start date</th>
- <th>Last activity</th>
- <th>Replies</th>
- </tr>
- </thead>
- <tbody>
- {% for lv in last_views %}
- <tr>
- <td>
- {% if thread.unread %}
- <i class="unread icon-eye-close" title="New comments"></i>
- {% endif %}
- </td>
- <td><a href="{% url 'thread' mlist_fqdn=lv.list_address threadid=lv.threadid %}"
- >{{ lv.thread.starting_email.subject }}</a></td>
- <td>{{ lv.thread.starting_email.sender_name }}</td>
- <td>{{ lv.thread.starting_email|get_date|date:"l, j F Y H:i:s" }}</td>
- <td>{{ lv.thread|get_date|timesince }}</td>
- <td>
- {{ lv.thread|length }}
- {% if thread.unread %}
- / {{ thread.unread }} new
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% include "paginator.html" with pager=last_views page_key="lvpage" %}
- {% else %}
- <p>Nothing read yet.</p>
- {% endif %}
-
-{# vim: set noet: #}
+ {% if last_views %}
+ <table class="table table-striped table-bordered table-condensed">
+ <thead>
+ <tr>
+ <th></th>
+ <th>Subject</th>
+ <th>Original author</th>
+ <th>Start date</th>
+ <th>Last activity</th>
+ <th>Replies</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for lv in last_views %}
+ <tr>
+ <td>
+ {% if thread.unread %}
+ <i class="unread icon-eye-close" title="New comments"></i>
+ {% endif %}
+ </td>
+ <td><a href="{% url 'thread' mlist_fqdn=lv.list_address threadid=lv.threadid %}"
+ >{{ lv.thread.starting_email.subject }}</a></td>
+ <td>{{ lv.thread.starting_email.sender_name }}</td>
+ <td>{{ lv.thread.starting_email|get_date|date:"l, j F Y H:i:s" }}</td>
+ <td>{{ lv.thread|get_date|timesince }}</td>
+ <td>
+ {{ lv.thread|length }}
+ {% if thread.unread %}
+ / {{ thread.unread }} new
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ {% include "paginator.html" with pager=last_views page_key="lvpage" %}
+ {% else %}
+ <p>Nothing read yet.</p>
+ {% endif %}
diff --git a/hyperkitty/templates/ajax/replies.html b/hyperkitty/templates/ajax/replies.html
index 7b6fc70..bf13c9a 100644
--- a/hyperkitty/templates/ajax/replies.html
+++ b/hyperkitty/templates/ajax/replies.html
@@ -1,13 +1,11 @@
{% load url from future %}
{% load hk_generic %}
- {% for email in replies %}
- <div class="{% cycle 'even' 'odd' %}"
- {% if email.level %}style="margin-left:{{ email.level|multiply:"2" }}em;"{% endif %}>
- <!-- Start email -->
- {% include 'messages/message.html' %}
- <!-- End of email -->
- </div>
- {% endfor %}
-
-{# vim: set noet: #}
+ {% for email in replies %}
+ <div class="{% cycle 'even' 'odd' %}"
+ {% if email.level %}style="margin-left:{{ email.level|multiply:"2" }}em;"{% endif %}>
+ <!-- Start email -->
+ {% include 'messages/message.html' %}
+ <!-- End of email -->
+ </div>
+ {% endfor %}
diff --git a/hyperkitty/templates/ajax/temp_message.html b/hyperkitty/templates/ajax/temp_message.html
index f518114..5b84b51 100644
--- a/hyperkitty/templates/ajax/temp_message.html
+++ b/hyperkitty/templates/ajax/temp_message.html
@@ -3,36 +3,34 @@
{% load hk_generic %}
<div class="temporary"
- {% if email.level %}style="margin-left:{{ email.level|multiply:"2" }}em;"{% endif %}>
- <!-- Start email -->
- <div class="email">
+ {% if email.level %}style="margin-left:{{ email.level|multiply:"2" }}em;"{% endif %}>
+ <!-- Start email -->
+ <div class="email">
- <div class="email-header">
- <div class="email-date inline-block pull-right">
- <span class="date">Sent just now, not yet distributed</span>
- </div>
- <div class="gravatar{% if use_mockups %} pull-left{% endif %}">
- {% gravatar email.sender_email 40 %}
- </div>
- <div class="email-author inline-block">
- <span class="name">{{email.sender_name|escapeemail}}</span>
- {% if use_mockups %}
- <br />
- <span class="rank">
- Rank 8
- </span>
- {% endif %}
- </div>
- </div>
+ <div class="email-header">
+ <div class="email-date inline-block pull-right">
+ <span class="date">Sent just now, not yet distributed</span>
+ </div>
+ <div class="gravatar{% if use_mockups %} pull-left{% endif %}">
+ {% gravatar email.sender_email 40 %}
+ </div>
+ <div class="email-author inline-block">
+ <span class="name">{{email.sender_name|escapeemail}}</span>
+ {% if use_mockups %}
+ <br />
+ <span class="rank">
+ Rank 8
+ </span>
+ {% endif %}
+ </div>
+ </div>
- <div class="email-body"
- >{{ email.content|snip_quoted|wordwrap:90|urlizetrunc:76|escapeemail }}</div>
+ <div class="email-body"
+ >{{ email.content|snip_quoted|wordwrap:90|urlizetrunc:76|escapeemail }}</div>
- <div class="email-info">
- </div>
+ <div class="email-info">
+ </div>
- </div>
- <!-- End of email -->
+ </div>
+ <!-- End of email -->
</div>
-
-{# vim: set noet: #}