app/soc/templates/modules/ghop/task/list/row.html
author Daniel Hans <Daniel.M.Hans@gmail.com>
Mon, 02 Nov 2009 23:38:43 +0100
changeset 3074 ebda36efbd61
parent 3017 6689a4c8f02e
permissions -rw-r--r--
HtmlSanitizer becomes Python 2.6 compatible. The Cleaner class must not have any arguments when calling __init__ function for the object class, because in this case Python 2.6 raises TypeError (while previous versions just ignored them).

{% block first %}
<tr class="off" onmouseover="this.className='on'; do_redirect=true" onmouseout="this.className='off'" 
onclick="if (do_redirect) document.location.href='{{ list.redirect }}'" name="name">
  <td align="right"><div class="title"><a class="noul" onclick="do_redirect=false"
         href="{{ list.redirect }}">{{ list.item.title }}</a>
     </div>
  </td>
{% endblock first %}
  <td><div class="difficulty">{{ list.item.difficulty.0.tag }}</a></div></td>
  <td><div class="task_type">
  {% for task_type in list.item.task_type %}
    {{ task_type.tag }}{% if not forloop.last %}, {% endif %}
  {% endfor %}
  </a></div></td>
  <td><div class="timetocomplete">{{ list.item.time_to_complete }} hrs</a></div></td>
  <td><div class="status">{{ list.item.status }}</a></div></td>
  <td><div class="mentors">
  {% if list.info.mentors %}
    {% for mentor in list.info.mentors|slice:":2" %}
      {{ mentor.name }}{% if not forloop.last %}, {% endif %}    
    {% endfor %}
    {% if list.info.extramentors %}
      + {{ list.info.extramentors }} 
    {% endif %}
  {% else %}
    Not Assigned
  {% endif %}
  </a></div></td>
</tr>