summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/ajax
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-05-23 15:44:40 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-05-23 17:48:16 +0200
commite9e92bf1ac15421b9a29c366b9ef6bf2c1b94943 (patch)
treefe8fa3405c8cbea61ba951862309982b5ede365d /hyperkitty/templates/ajax
parente21dd91f3482ce6e1ea6c48f8efa2f46777c7a70 (diff)
downloadhyperkitty-e9e92bf1ac15421b9a29c366b9ef6bf2c1b94943.tar.gz
hyperkitty-e9e92bf1ac15421b9a29c366b9ef6bf2c1b94943.tar.xz
hyperkitty-e9e92bf1ac15421b9a29c366b9ef6bf2c1b94943.zip
Reorganize AJAX templates
Diffstat (limited to 'hyperkitty/templates/ajax')
-rw-r--r--hyperkitty/templates/ajax/replies.html13
-rw-r--r--hyperkitty/templates/ajax/temp_message.html38
2 files changed, 51 insertions, 0 deletions
diff --git a/hyperkitty/templates/ajax/replies.html b/hyperkitty/templates/ajax/replies.html
new file mode 100644
index 0000000..7b6fc70
--- /dev/null
+++ b/hyperkitty/templates/ajax/replies.html
@@ -0,0 +1,13 @@
+{% 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: #}
diff --git a/hyperkitty/templates/ajax/temp_message.html b/hyperkitty/templates/ajax/temp_message.html
new file mode 100644
index 0000000..f518114
--- /dev/null
+++ b/hyperkitty/templates/ajax/temp_message.html
@@ -0,0 +1,38 @@
+{% load url from future %}
+{% load gravatar %}
+{% load hk_generic %}
+
+<div class="temporary"
+ {% 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-body"
+ >{{ email.content|snip_quoted|wordwrap:90|urlizetrunc:76|escapeemail }}</div>
+
+ <div class="email-info">
+ </div>
+
+ </div>
+ <!-- End of email -->
+</div>
+
+{# vim: set noet: #}