summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/search.html
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-07-24 17:00:25 -0400
committerAamir Khan <syst3m.w0rm@gmail.com>2012-07-24 17:00:25 -0400
commit9f18a590819a01017c15169d82763680a72848fb (patch)
tree9c781cd677eeae9b1e50e986647e1929e99bdac7 /hyperkitty/templates/search.html
parentae77d9901e2a466622818f95d784fb85b5296727 (diff)
downloadhyperkitty-9f18a590819a01017c15169d82763680a72848fb.tar.gz
hyperkitty-9f18a590819a01017c15169d82763680a72848fb.tar.xz
hyperkitty-9f18a590819a01017c15169d82763680a72848fb.zip
Packaging hyperkitty
Diffstat (limited to 'hyperkitty/templates/search.html')
-rw-r--r--hyperkitty/templates/search.html106
1 files changed, 106 insertions, 0 deletions
diff --git a/hyperkitty/templates/search.html b/hyperkitty/templates/search.html
new file mode 100644
index 0000000..e0e4f8c
--- /dev/null
+++ b/hyperkitty/templates/search.html
@@ -0,0 +1,106 @@
+{% extends "base.html" %}
+{% load poll_extras %}
+{% load gravatar %}
+
+{% block content %}
+
+{% if threads.object_list %}
+<div class="pagination">
+ <span class="step-links"> {% if threads.has_previous %} <a href="{{full_path|strip_page}}/{{ threads.previous_page_number }}">previous</a> {% endif %} <span class="current"> Page {{ threads.number }} of {{ threads.paginator.num_pages }}. </span> {% if threads.has_next %} <a href="{{full_path|strip_page}}/{{ threads.next_page_number }}">next</a> {% endif %} </span>
+</div>
+{% endif %}
+
+{% for email in threads.object_list %}
+<!-- New thread -->
+<div class="thread">
+ <div class="notsaved">
+ <a href="/thread/{{list_address}}/{{email.thread_id}}"> <span class="thread_title">{{email.subject}}</span> </a>
+ <span class="thread_date">{{email.date}}</span>
+ </div>
+ <div class="thread_content">
+ {% if email.category_tag %}
+ <div class="inline-block type type_{{email.category_tag}}">
+ <a href="/tag/{{list_address}}/{{email.category_tag}}"> {{email.category}} </a>
+ </div>
+ {% else %}
+ <div class="inline-block type type_{{email.category|lower}}">
+ <a href="/tag/{{list_address}}/{{email.category|lower}}"> {{email.category}} </a>
+ </div>
+ {% endif %}
+ <div class="inline-block gravatar">
+ {% if email.email %}
+ {% gravatar_img_for_email email.email 40 %}
+ <br />
+ {% endif %}
+ {{email.sender}}
+ </div>
+ <div class="inline-block thread_email">
+ <span class="expander"> {{email.content}} </span>
+ </div>
+ </div>
+ <div class="thread_info">
+ <ul class="tags inline">
+ <li>
+ Tags:
+ </li>
+ {% for tag in email.tags %}
+ <li>
+ <a href="/tag/{{list_address}}/{{tag}}">{{tag}}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ <ul class="inline-block">
+ <li class="participant">
+ {{email.participants|length}} participants
+ </li>
+ <li class="discussion">
+ {{email.answers}} comments
+ </li>
+ </ul>
+ <ul class="inline-block">
+ <li class="like">
+ +{{email.liked}}
+ </li>
+ <li class="youlike">
+ <a href="#like"> Like</a>
+ </li>
+ <li class="youdislike">
+ <a href="#dislike"> Dislike</a>
+ </li>
+ {% if email.answers %}
+ <li class="showdiscussion">
+ <a href="#show"> Show discussion</a>
+ </li>
+ {% else %}
+ <li class="showdiscussion invisible">
+ <a href="#show"> Show discussion</a>
+ </li>
+ {% endif %}
+ </ul>
+ </div>
+</div>
+<!-- End of thread -->
+{% empty %}
+Sorry no emails could be found for your search.
+{% endfor %}
+
+{% if threads.object_list %}
+<div class="pagination">
+ <span class="step-links"> {% if threads.has_previous %} <a href="{{ threads.previous_page_number }}">previous</a> {% endif %} <span class="current"> Page {{ threads.number }} of {{ threads.paginator.num_pages }}. </span> {% if threads.has_next %} <a href="{{ threads.next_page_number }}">next</a> {% endif %} </span>
+</div>
+{% endif %}
+
+{% endblock %}
+
+{% block additionaljs %}
+<script src="{{ STATIC_URL }}jquery.expander.js"></script>
+<script>
+ $(document).ready(function() {
+ $('span.expander').expander({
+ userCollapseText : 'View Less',
+ expandText : 'View More'
+ });
+ });
+</script>
+{% endblock %}
+