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