summaryrefslogtreecommitdiffstats
path: root/templates/thread.html
blob: 7d08701ad4abc13bad7284cc68b24385d5905a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% extends "base.html" %}

{% load gravatar %}

{% block additional_stylesheets %}
	<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/thread.css" />
{% endblock %}

{% block content %}

  <div class="content">
   
    {% include 'threads/right_col.html' %}

    <!-- main section, the email thread -->
    <section id="thread_content">

      <!-- Start first email -->
	{% include 'messages/first_email.html' %}
      <!-- End first email -->

        {% for email in threads %}
	        <!-- Start email -->
  	      	<div class="even">
			{% include 'messages/message.html' %}
		</div>
        	<!-- End of email -->

        {% empty %}
        Sorry no emails could be found for your search.
        {% endfor %}

    </section>

  </div> <!-- end of content -->
{% endblock %}



{% block addtionaljs %}
<script src="{{ STATIC_URL }}jquery.expander.js"></script>
  <script>
    $(document).ready(function() {
      $('div.email_body').expander({
      userCollapseText: 'View Less',
      expandText: 'View More'
      });
    });
    </script>
{% endblock %}