Show More
@@ -1,62 +1,52 | |||||
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 | ${self.menu('home')} |
|
13 | ${self.menu('home')} | |
14 | </%def> |
|
14 | </%def> | |
15 | <%def name="main()"> |
|
15 | <%def name="main()"> | |
16 | <%def name="get_sort(name)"> |
|
16 | <%def name="get_sort(name)"> | |
17 | <%name_slug = name.lower().replace(' ','_') %> |
|
17 | <%name_slug = name.lower().replace(' ','_') %> | |
18 | %if name_slug == c.cs_slug: |
|
18 | %if name_slug == c.cs_slug: | |
19 |
<span style="font-weight: bold; |
|
19 | <span style="font-weight: bold;text-decoration: underline;">${name}</span> | |
20 | %else: |
|
20 | %else: | |
21 | <span style="font-weight: bold">${name}</span> |
|
21 | <span style="font-weight: bold">${name}</span> | |
22 | %endif |
|
22 | %endif | |
23 | <a href="?sort=${name_slug}">↓</a> |
|
23 | <a style="color:#FFF" href="?sort=${name_slug}">↓</a> | |
24 | <a href="?sort=-${name_slug}">↑</a> |
|
24 | <a style="color:#FFF" href="?sort=-${name_slug}">↑</a> | |
25 | </%def> |
|
25 | </%def> | |
26 | <table> |
|
26 | <table class="table_disp"> | |
27 | <tr> |
|
27 | <tr class="header"> | |
28 | <td>${get_sort(_('Name'))}</td> |
|
28 | <td>${get_sort(_('Name'))}</td> | |
29 | <td>${get_sort(_('Description'))}</td> |
|
29 | <td>${get_sort(_('Description'))}</td> | |
30 | <td>${get_sort(_('Last change'))}</td> |
|
30 | <td>${get_sort(_('Last change'))}</td> | |
31 | <td>${get_sort(_('Tip'))}</td> |
|
31 | <td>${get_sort(_('Tip'))}</td> | |
32 | <td>${get_sort(_('Contact'))}</td> |
|
32 | <td>${get_sort(_('Contact'))}</td> | |
33 | <td></td> |
|
33 | <td>${_('RSS')}</td> | |
34 | <td></td> |
|
34 | <td>${_('Atom')}</td> | |
35 | <td></td> |
|
|||
36 | </tr> |
|
35 | </tr> | |
37 | %for cnt,repo in enumerate(c.repos_list): |
|
36 | %for cnt,repo in enumerate(c.repos_list): | |
38 | <tr class="parity${cnt%2}"> |
|
37 | <tr class="parity${cnt%2}"> | |
39 | <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> |
|
38 | <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> | |
40 | <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> |
|
39 | <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> | |
41 | <td>${repo['last_change']|n,filters.age}</td> |
|
40 | <td>${repo['last_change']|n,filters.age}</td> | |
42 | <td>${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']))}</td> |
|
41 | <td>${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']))}</td> | |
43 | <td title="${repo['contact']}">${repo['contact']|n,filters.person}</td> |
|
42 | <td title="${repo['contact']}">${repo['contact']|n,filters.person}</td> | |
44 |
|
||||
45 | ##%for archive in repo['repo_archives']: |
|
|||
46 | ##<td class="indexlinks"> |
|
|||
47 | ## ${h.link_to(archive['type'], |
|
|||
48 | ## h.url('files_archive_home',repo_name=repo['name'], |
|
|||
49 | ## revision='tip',fileformat=archive['extension']),class_="archive_logo" )} |
|
|||
50 | ##</td> |
|
|||
51 | ##%endfor |
|
|||
52 |
|
||||
53 | <td> |
|
43 | <td> | |
54 | ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=repo['name']),class_='rss_logo')} |
|
44 | <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_logo" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> | |
55 | </td> |
|
45 | </td> | |
56 | <td> |
|
46 | <td> | |
57 | ${h.link_to(_('Atom'),h.url('atom_feed_home',repo_name=repo['name']),class_='atom_logo')} |
|
47 | <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_logo" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> | |
58 | </td> |
|
48 | </td> | |
59 | </tr> |
|
49 | </tr> | |
60 | %endfor |
|
50 | %endfor | |
61 | </table> |
|
51 | </table> | |
62 | </%def> |
|
52 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now