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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1072
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
     1
<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
     2
onclick="document.location.href='{{ list.redirect }}'" name="name">
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
     3
  <td align="right"><div class="name"><a class="noul"
1887
8b71f4e58f39 Changed notifications helper to properly use the fact that from_user is not a required property.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1072
diff changeset
     4
         href="{{ list.redirect }}">
8b71f4e58f39 Changed notifications helper to properly use the fact that from_user is not a required property.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1072
diff changeset
     5
         {% if list.item.from_user %}
8b71f4e58f39 Changed notifications helper to properly use the fact that from_user is not a required property.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1072
diff changeset
     6
           {{ list.item.from_user.name }}
8b71f4e58f39 Changed notifications helper to properly use the fact that from_user is not a required property.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1072
diff changeset
     7
         {% else %}
8b71f4e58f39 Changed notifications helper to properly use the fact that from_user is not a required property.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1072
diff changeset
     8
           Anonymous
8b71f4e58f39 Changed notifications helper to properly use the fact that from_user is not a required property.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1072
diff changeset
     9
         {% endif %}
8b71f4e58f39 Changed notifications helper to properly use the fact that from_user is not a required property.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1072
diff changeset
    10
         </a>
1072
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
    11
     </div>
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
    12
  </td>
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
    13
  <td><div class="subject">{{ list.item.subject }}</div></td>
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
    14
  <td><div class="created_on">{{ list.item.created_on }} </div> </td>
9cd86652481f Fix EOL damage and add link to first row item for notifcations
Sverre Rabbelier <srabbelier@gmail.com>
parents: 726
diff changeset
    15
</tr>