summaryrefslogtreecommitdiffstats
path: root/templates/thread.html
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-06-25 16:17:10 -0400
committerAamir Khan <syst3m.w0rm@gmail.com>2012-06-25 16:17:10 -0400
commitd830b1ab3d95f8598de98b2a97cfed7ed19c4175 (patch)
treeb110afb4bacc67cdbdb1cab6cbdc1512f20f99b9 /templates/thread.html
parentea19e904c28e45cbfb8084c4a3ede4dfb55606e1 (diff)
downloadhyperkitty-d830b1ab3d95f8598de98b2a97cfed7ed19c4175.tar.gz
hyperkitty-d830b1ab3d95f8598de98b2a97cfed7ed19c4175.tar.xz
hyperkitty-d830b1ab3d95f8598de98b2a97cfed7ed19c4175.zip
Code Formatting
Diffstat (limited to 'templates/thread.html')
-rw-r--r--templates/thread.html131
1 files changed, 69 insertions, 62 deletions
diff --git a/templates/thread.html b/templates/thread.html
index 8ffd5ea..508b03a 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -3,84 +3,91 @@
{% load gravatar %}
{% block additional_stylesheets %}
- <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/thread.css" />
+<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' %}
+<div class="content">
- <!-- main section, the email thread -->
- <section id="thread_content">
+ {% include 'threads/right_col.html' %}
- <!-- Start first email -->
- {% include 'messages/first_email.html' %}
- <!-- End first email -->
+ <!-- main section, the email thread -->
+ <section id="thread_content">
- {% for email in threads %}
- <!-- Start email -->
- <div class="even">
+ <!-- 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 -->
+ <!-- End of email -->
- {% empty %}
- Sorry no emails could be found for your search.
- {% endfor %}
+ {% empty %}
+ Sorry no emails could be found for your search.
+ {% endfor %}
- </section>
+ </section>
- </div> <!-- end of content -->
+</div>
+<!-- end of content -->
{% endblock %}
-
-
{% block additionaljs %}
- <script src="{{ STATIC_URL }}jquery.expander.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('div.email_body').expander({
- userCollapseText: 'View Less',
- expandText: 'View More'
- });
- });
- </script>
-
-
- <script type="text/javascript">
-
+<script src="{{ STATIC_URL }}jquery.expander.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('div.email_body').expander({
+ userCollapseText : 'View Less',
+ expandText : 'View More'
+ });
+ });
+</script>
+
+<script type="text/javascript">
$(document).ready(function() {
- $(".voteup").click(function(){
- // @TODO: Extract the message id from the HTML DOM element instead of hard coding it in Javascript.
- message_id = this.parentElement.getAttribute('messageid');
- $.ajax({
- type: "POST",
- url: '/vote/{{list_address}}/',
- data: { vote : 1, messageid : message_id, list: "{{list_address}}", csrfmiddlewaretoken: '{{ csrf_token }}' },
- success: function(response){
- alert(response);
- }
- });
- return false;
- });
-
- $(".votedown").click(function(){
- message_id = this.parentElement.getAttribute('messageid');
- $.ajax({
- type: "POST",
- url: '/vote/{{list_address}}/',
- data: { vote : -1, messageid : message_id , list: "{{list_address}}", csrfmiddlewaretoken: '{{ csrf_token }}' },
- success: function(response){
- alert(response);
- }
- });
- return false;
- });
-
- });
- </script>
+ $(".voteup").click(function() {
+ // @TODO: Extract the message id from the HTML DOM element instead of hard coding it in Javascript.
+ message_id = this.parentElement.getAttribute('messageid');
+ $.ajax({
+ type : "POST",
+ url : '/vote/{{list_address}}/',
+ data : {
+ vote : 1,
+ messageid : message_id,
+ list : "{{list_address}}",
+ csrfmiddlewaretoken : '{{ csrf_token }}'
+ },
+ success : function(response) {
+ alert(response);
+ }
+ });
+ return false;
+ });
+
+ $(".votedown").click(function() {
+ message_id = this.parentElement.getAttribute('messageid');
+ $.ajax({
+ type : "POST",
+ url : '/vote/{{list_address}}/',
+ data : {
+ vote : -1,
+ messageid : message_id,
+ list : "{{list_address}}",
+ csrfmiddlewaretoken : '{{ csrf_token }}'
+ },
+ success : function(response) {
+ alert(response);
+ }
+ });
+ return false;
+ });
+
+ });
+</script>
{% endblock %}