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