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