##// END OF EJS Templates
fixed index html
marcink -
r157:a72fb7d3 default
parent child Browse files
Show More
@@ -1,61 +1,63 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%!
2 <%!
3 from pylons_app.lib import filters
3 from pylons_app.lib import filters
4 %>
4 %>
5 <%inherit file="base/base.html"/>
5 <%inherit file="base/base.html"/>
6 <%def name="title()">
6 <%def name="title()">
7 ${c.repos_prefix} Mercurial Repositories
7 ${c.repos_prefix} Mercurial Repositories
8 </%def>
8 </%def>
9 <%def name="breadcrumbs()">
9 <%def name="breadcrumbs()">
10 ${c.repos_prefix} Mercurial Repositories
10 ${c.repos_prefix} Mercurial Repositories
11 </%def>
11 </%def>
12 <%def name="page_nav()">
12 <%def name="page_nav()">
13 <li class="current">${_('Home')}</li>
13 <ul class="page-nav">
14 <li>${h.link_to(u'Admin',h.url('admin_home'))}</li>
14 <li class="current">${_('Home')}</li>
15 <li>${h.link_to(u'Admin',h.url('admin_home'))}</li>
16 </ul>
15 </%def>
17 </%def>
16 <%def name="main()">
18 <%def name="main()">
17 <%def name="get_sort(name)">
19 <%def name="get_sort(name)">
18 <%name_slug = name.lower().replace(' ','_') %>
20 <%name_slug = name.lower().replace(' ','_') %>
19 %if name_slug == c.cs_slug:
21 %if name_slug == c.cs_slug:
20 <span style="font-weight: bold;color:#006699">${name}</span>
22 <span style="font-weight: bold;color:#006699">${name}</span>
21 %else:
23 %else:
22 <span style="font-weight: bold">${name}</span>
24 <span style="font-weight: bold">${name}</span>
23 %endif
25 %endif
24
26
25 <a href="?sort=${name_slug}">&darr;</a>
27 <a href="?sort=${name_slug}">&darr;</a>
26 <a href="?sort=-${name_slug}">&uarr;</a>
28 <a href="?sort=-${name_slug}">&uarr;</a>
27
29
28 </%def>
30 </%def>
29 <table>
31 <table>
30 <tr>
32 <tr>
31 <td>${get_sort(_('Name'))}</td>
33 <td>${get_sort(_('Name'))}</td>
32 <td>${get_sort(_('Description'))}</td>
34 <td>${get_sort(_('Description'))}</td>
33 <td>${get_sort(_('Last change'))}</td>
35 <td>${get_sort(_('Last change'))}</td>
34 <td>${get_sort(_('Tip'))}</td>
36 <td>${get_sort(_('Tip'))}</td>
35 <td>${get_sort(_('Contact'))}</td>
37 <td>${get_sort(_('Contact'))}</td>
36 <td></td>
38 <td></td>
37 <td></td>
39 <td></td>
38 <td></td>
40 <td></td>
39 </tr>
41 </tr>
40 %for cnt,repo in enumerate(c.repos_list):
42 %for cnt,repo in enumerate(c.repos_list):
41 <tr class="parity${cnt%2}">
43 <tr class="parity${cnt%2}">
42 <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td>
44 <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td>
43 <td>${repo['description']}</td>
45 <td>${repo['description']}</td>
44 <td>${repo['last_change']|n,filters.age}</td>
46 <td>${repo['last_change']|n,filters.age}</td>
45 <td>r${repo['rev']}:<a href="/${repo['name']}/rev/${repo['tip']}/">${repo['tip']}</a></td>
47 <td>r${repo['rev']}:<a href="/${repo['name']}/rev/${repo['tip']}/">${repo['tip']}</a></td>
46 <td>${repo['contact']}</td>
48 <td>${repo['contact']}</td>
47 <td class="indexlinks">
49 <td class="indexlinks">
48 %for archive in repo['repo_archives']:
50 %for archive in repo['repo_archives']:
49 <a href="/${repo['name']}/archive/${archive['node']}${archive['extension']}">${archive['type']}</a>
51 <a href="/${repo['name']}/archive/${archive['node']}${archive['extension']}">${archive['type']}</a>
50 %endfor
52 %endfor
51 </td>
53 </td>
52 <td>
54 <td>
53 <a class="rss_logo" href="/${repo['name']}/rss-log">RSS</a>
55 <a class="rss_logo" href="/${repo['name']}/rss-log">RSS</a>
54 </td>
56 </td>
55 <td>
57 <td>
56 <a class="atom_logo" href="/${repo['name']}/atom-log">Atom</a>
58 <a class="atom_logo" href="/${repo['name']}/atom-log">Atom</a>
57 </td>
59 </td>
58 </tr>
60 </tr>
59 %endfor
61 %endfor
60 </table>
62 </table>
61 </%def>
63 </%def>
General Comments 0
You need to be logged in to leave comments. Login now