app/soc/templates/soc/notification/list/row.html
changeset 1887 8b71f4e58f39
parent 1072 9cd86652481f
child 1889 4356a9201d20
--- a/app/soc/templates/soc/notification/list/row.html	Sun Mar 15 20:58:39 2009 +0000
+++ b/app/soc/templates/soc/notification/list/row.html	Sun Mar 15 22:32:05 2009 +0000
@@ -1,7 +1,13 @@
 <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 }}">{{ list.item.from_user.name }}</a>
+         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>