app/soc/templates/soc/notification/list/row.html
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 15 Mar 2009 22:32:05 +0000
changeset 1887 8b71f4e58f39
parent 1072 9cd86652481f
child 1889 4356a9201d20
permissions -rw-r--r--
Changed notifications helper to properly use the fact that from_user is not a required property. The list template has changed to reflect this. The naming is open for discussion but note that if it is decided to change it that it also needs to be changed in the public.html template. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed

<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
onclick="document.location.href='{{ list.redirect }}'" name="name">
  <td align="right"><div class="name"><a class="noul"
         href="{{ list.redirect }}">
         {% if list.item.from_user %}
           {{ list.item.from_user.name }}
         {% else %}
           Anonymous
         {% endif %}
         </a>
     </div>
  </td>
  <td><div class="subject">{{ list.item.subject }}</div></td>
  <td><div class="created_on">{{ list.item.created_on }} </div> </td>
</tr>