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