app/soc/templates/modules/ghop/templatetags/_as_ghop_task_comments.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 28 Aug 2009 13:17:32 +0200
changeset 2830 5caf0d342696
permissions -rw-r--r--
Added templatetags for use in the GHOP module. Reviewed by: to-be-reviewed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2830
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
{% comment %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
Licensed under the Apache License, Version 2.0 (the "License");
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
you may not use this file except in compliance with the License.
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
You may obtain a copy of the License at
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
  http://www.apache.org/licenses/LICENSE-2.0
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
Unless required by applicable law or agreed to in writing, software
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
distributed under the License is distributed on an "AS IS" BASIS,
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
See the License for the specific language governing permissions and
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
limitations under the License.
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
{% endcomment %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
<script type="text/javascript">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
$(document).ready(function(){
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
  $('.spc{{ comment_id }}').hide();
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
  $('.ghoptaskcomment #c{{ comment_id }}').hover(
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
    function() {
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
      $('.spc{{ comment_id }}').show();
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
    },
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
    function() {
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
      $('.spc{{ comment_id }}').hide();
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
    });
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
});
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
</script>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
<div class="ghoptaskcomment">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
 <div class="title" id="c{{ comment_id }}">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
  On {{ comment.created_on|date:"jS F Y H:i" }},
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
  by
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
  {% if comment.created_by %} 
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
    {{ comment.created_by.name }}:
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
  {% else %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
    {{ site_name }} Automatic Updater:
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
  {% endif %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
  <span class="spc{{ comment_id }}">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
   <a title="Permalink to this Comment" href="#c{{ comment_id }}">ΒΆ</a>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
  </span>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
 </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
 <div class="box-inner">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
  <p>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
   {% if comment.content %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
     {{ comment.content|safe }}</p>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
   {% else %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
   (No Comment was entered for this change.)
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
   {% endif %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
 </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
 {% if comment.changes %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
  <div class="changes">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
   <div class="box-inner">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
    <b>Changes:</b>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
    {{ comment.changes|join:"; " }} 
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
   </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
  </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
 {% endif %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
</div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    58
<hr />
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59