app/soc/templates/modules/ghop/templatetags/_as_ghop_task_ws.html
author Mario Ferraro <fadinlight@gmail.com>
Sun, 15 Nov 2009 22:12:20 +0100
changeset 3093 d1be59b6b627
parent 2830 5caf0d342696
permissions -rw-r--r--
GMaps related JS changed to use new google namespace. Google is going to change permanently in the future the way to load its services, so better stay safe. Also this commit shows uses of the new melange.js module. Fixes Issue 634.
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
  $('.spws{{ ws_id }}').hide();
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
  $('.ghoptaskcomment #ws{{ ws_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
      $('.spws{{ ws_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
      $('.spws{{ ws_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="ws{{ ws_id }}">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
  On {{ ws.submitted_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 {{ ws.user.name }}:
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
  <span class="spws{{ ws_id }}">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
   <a title="Permalink to this Work Submission" href="#ws{{ ws_id }}">ΒΆ</a>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
  </span>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
 </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
 <div class="box-inner">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
  <p>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
   {% if ws.information %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
     {{ ws.information|safe }}</p>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
   {% else %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
   (No additional information was entered with this work submission.)
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
   {% endif %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
 </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
 {% if ws.url_to_work %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
  <div class="changes">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
   <div class="box-inner">
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
    <b>Link to Work Submitted:</b>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
    <a href='{{ ws.url_to_work|safe }}'>{{ ws.url_to_work|safe }}</a> 
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
   </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
  </div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
 {% endif %}
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
</div>
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
<hr />
5caf0d342696 Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54