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