app/soc/templates/modules/ghop/task/list/row.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 28 Aug 2009 13:14:16 +0200
changeset 2827 58e2a02e35b4
child 3017 6689a4c8f02e
permissions -rw-r--r--
Bulk add templates regarding Task Views. Reviewed by: to-be-reviewed

<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">
  {% block first %}
  <!-- to be used in the inherited block -->
  {% endblock %}
  <td align="right"><div class="title"><a class="noul" onclick="do_redirect=false"
         href="{{ list.redirect }}">{{ list.item.title }}</a>
     </div>
  </td>
  <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>