Requests now link to a user's profile
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 20 Mar 2009 22:00:14 +0000
changeset 1965 a0eb42b003c1
parent 1964 96e45d34ee71
child 1966 fcf246b379a7
Requests now link to a user's profile Patch by: Sverre Rabbelier
app/soc/templates/soc/request/list/heading.html
app/soc/templates/soc/request/list/row.html
--- a/app/soc/templates/soc/request/list/heading.html	Fri Mar 20 21:59:42 2009 +0000
+++ b/app/soc/templates/soc/request/list/heading.html	Fri Mar 20 22:00:14 2009 +0000
@@ -1,6 +1,6 @@
 <tr align="left">
-  <th class="first" align="right">User</th>
-  <th>Role</th>
+  <th class="first" align="right">Role</th>
+  <th>User</th>
   <th>For</th>
   <th>Status</th>
   <th>Created On</th>
--- a/app/soc/templates/soc/request/list/row.html	Fri Mar 20 21:59:42 2009 +0000
+++ b/app/soc/templates/soc/request/list/row.html	Fri Mar 20 22:00:14 2009 +0000
@@ -1,10 +1,12 @@
+{% load forms_helpers %}
+
 <tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" 
 onclick="document.location.href='{{ list.redirect }}'" name="name">
-  <td align="right"><div class="user_link_id"><a class="noul"
-         href="{{ list.redirect }}">{{ list.item.link_id }}</a>
+  <td align="right"><div class="role"><a class="noul"
+         href="{{ list.redirect }}">{{ list.item.role_verbose }}</a>
      </div>
   </td>
-  <td><div class="role">{{ list.item.role_verbose }}</div></td>
+  <td><div class="user_link_id">{% as_user list.item.link_id %}</div></td>
   <td><div class="for">{{ list.item.scope_path }}</div></td>
   <td><div class="status">{{ list.item.status }}</div></td>
   <td><div class="created">{{ list.item.created_on|date:"jS F Y H:i" }}</div></td>