Rename Host list templates from group_<something> to host_<something> and move then to soc/host/list folder. Update affected files with new paths.
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/soc/templates/soc/host/group_heading.html Thu Oct 23 09:47:38 2008 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-<tr align="left">
- <th class="first" align="right">User linkname</th>
- <th>Host linkname</th>
- <th>Given name</th>
- <th>Surname</th>
-</tr>
--- a/app/soc/templates/soc/host/group_row.html Thu Oct 23 09:47:38 2008 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
-onclick="document.location.href='/site/{{ entity_type|lower }}/profile/{{ data_element.sponsor.link_name }}/{{ data_element.user.link_name }}'" name="name">
- <td align="right"><div class="name"><a class="noul"
- href="/site/{{ entity_type|lower }}/profile/{{ data_element.sponsor.link_name }}/{{ data_element.user.link_name }}">{{ data_element.user.link_name }}</a>
- </div>
- </td>
- <td><div class="sponsor_link_name">{{ data_element.sponsor.link_name }}</div></td>
- <td><div class="given_name">{{ data_element.given_name }}</div></td>
- <td><div class="surname">{{ data_element.surname }}</div></td>
-</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/host/list/host_heading.html Thu Oct 23 11:20:35 2008 +0000
@@ -0,0 +1,6 @@
+<tr align="left">
+ <th class="first" align="right">User linkname</th>
+ <th>Host linkname</th>
+ <th>Given name</th>
+ <th>Surname</th>
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/host/list/host_row.html Thu Oct 23 11:20:35 2008 +0000
@@ -0,0 +1,10 @@
+<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
+onclick="document.location.href='/site/{{ entity_type|lower }}/profile/{{ data_element.sponsor.link_name }}/{{ data_element.user.link_name }}'" name="name">
+ <td align="right"><div class="name"><a class="noul"
+ href="/site/{{ entity_type|lower }}/profile/{{ data_element.sponsor.link_name }}/{{ data_element.user.link_name }}">{{ data_element.user.link_name }}</a>
+ </div>
+ </td>
+ <td><div class="sponsor_link_name">{{ data_element.sponsor.link_name }}</div></td>
+ <td><div class="given_name">{{ data_element.given_name }}</div></td>
+ <td><div class="surname">{{ data_element.surname }}</div></td>
+</tr>
--- a/app/soc/views/models/host.py Thu Oct 23 09:47:38 2008 +0000
+++ b/app/soc/views/models/host.py Thu Oct 23 11:20:35 2008 +0000
@@ -101,8 +101,8 @@
params['lists_template'] = {
'list_main': 'soc/list/list_main.html',
'list_pagination': 'soc/list/list_pagination.html',
- 'list_row': 'soc/host/group_row.html',
- 'list_heading': 'soc/host/group_heading.html',
+ 'list_row': 'soc/host/list/host_row.html',
+ 'list_heading': 'soc/host/list/host_heading.html',
}
params['delete_redirect'] = '/site/host/list'