Mercurial > kallithea
comparison pylons_app/templates/summary/summary.html @ 183:178e631df9f9
moved summary page to its own folder
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 21 May 2010 23:51:36 +0200 |
parents | pylons_app/templates/summary.html@1231bbe1ab36 |
children | 410101210923 |
comparison
equal
deleted
inserted
replaced
182:11e8eb5a92e3 | 183:178e631df9f9 |
---|---|
1 <%inherit file="/base/base.html"/> | |
2 <%! | |
3 from pylons_app.lib import filters | |
4 %> | |
5 <%def name="title()"> | |
6 ${_('Repository managment')} | |
7 </%def> | |
8 <%def name="breadcrumbs()"> | |
9 ${h.link_to(u'Home',h.url('/'))} | |
10 / | |
11 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} | |
12 / | |
13 ${_('summary')} | |
14 </%def> | |
15 <%def name="page_nav()"> | |
16 <form action="log"> | |
17 <dl class="search"> | |
18 <dt><label>Search: </label></dt> | |
19 <dd><input type="text" name="rev" /></dd> | |
20 </dl> | |
21 </form> | |
22 ${self.menu('summary')} | |
23 </%def> | |
24 <%def name="main()"> | |
25 <h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2> | |
26 <dl class="overview"> | |
27 <dt>${_('name')}</dt> | |
28 <dd>${c.repo_info.name}</dd> | |
29 <dt>${_('description')}</dt> | |
30 <dd>${c.repo_info.description}</dd> | |
31 <dt>${_('contact')}</dt> | |
32 <dd>${c.repo_info.contact}</dd> | |
33 <dt>${_('last change')}</dt> | |
34 <dd>${c.repo_info.last_change|n,filters.rfc822date} - ${c.repo_info.last_change|n,filters.age}</dd> | |
35 <dt>${_('url')}</dt> | |
36 <dd><pre style="margin:0">hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd> | |
37 <dt>${_('Download')}</dt> | |
38 <dd> | |
39 %for cnt,archive in enumerate(c.repo_info._get_archives()): | |
40 %if cnt >=1: | |
41 | | |
42 %endif | |
43 ${h.link_to(c.repo_info.name+'.'+archive['type'], | |
44 h.url('files_archive_home',repo_name=c.repo_info.name, | |
45 revision='tip',fileformat=archive['extension']))} | |
46 %endfor | |
47 </dd> | |
48 </dl> | |
49 | |
50 <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> | |
51 <table> | |
52 <%def name="message_slug(msg)"> | |
53 <% | |
54 limit = 60 | |
55 if len(msg) > limit: | |
56 return msg[:limit]+'...' | |
57 else: | |
58 return msg | |
59 %> | |
60 </%def> | |
61 %for cnt,cs in enumerate(c.repo_changesets): | |
62 <tr class="parity${cnt%2}"> | |
63 <td>${cs._ctx.date()|n,filters.age}</td> | |
64 <td>${cs.author|n,filters.person}</td> | |
65 <td>r${cs.revision}</td> | |
66 <td> | |
67 ${h.link_to(message_slug(cs.message), | |
68 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | |
69 title=cs.message)} | |
70 </td> | |
71 <td> | |
72 <span class="logtags"> | |
73 <span class="branchtag">${cs.branch}</span> | |
74 %for tag in cs.tags: | |
75 <span class="tagtag">${tag}</span> | |
76 %endfor | |
77 </span> | |
78 </td> | |
79 <td class="nowrap"> | |
80 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} | |
81 | | |
82 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))} | |
83 </td> | |
84 </tr> | |
85 %endfor | |
86 </table> | |
87 | |
88 <h2>${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</h2> | |
89 <table> | |
90 %for cnt,tag in enumerate(c.repo_tags): | |
91 <tr class="parity${cnt%2}"> | |
92 <td>${tag._ctx.date()|n,filters.age}</td> | |
93 <td> | |
94 <span class="logtags"> | |
95 <span class="tagtag">${h.link_to(tag.tags[-1],h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}</span> | |
96 </span> | |
97 </td> | |
98 <td class="nowrap"> | |
99 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))} | |
100 | | |
101 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag._short))} | |
102 </td> | |
103 </tr> | |
104 %endfor | |
105 </table> | |
106 | |
107 <h2>${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</h2> | |
108 <table> | |
109 %for cnt,branch in enumerate(c.repo_branches): | |
110 <tr class="parity${cnt%2}"> | |
111 <td>${branch._ctx.date()|n,filters.age}</td> | |
112 <td> | |
113 <span class="logtags"> | |
114 <span class="branchtag">${h.link_to(branch.branch,h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}</span> | |
115 </span> | |
116 </td> | |
117 <td class="nowrap"> | |
118 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))} | |
119 | | |
120 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch._short))} | |
121 </td> | |
122 </tr> | |
123 %endfor | |
124 </table> | |
125 | |
126 </%def> |