annotate pylons_app/templates/summary/summary.html @ 210:6257cf277395

Css changes, added icon pack.
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 23 May 2010 21:27:07 +0200
parents 410101210923
children 64e1125fc479
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 126
diff changeset
1 <%inherit file="/base/base.html"/>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 82
diff changeset
2 <%!
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 82
diff changeset
3 from pylons_app.lib import filters
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 82
diff changeset
4 %>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
5 <%def name="title()">
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
6 ${_('Repository managment')}
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
7 </%def>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
8 <%def name="breadcrumbs()">
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
9 ${h.link_to(u'Home',h.url('/'))}
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
10 /
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
11 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
12 /
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
13 ${_('summary')}
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
14 </%def>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
15 <%def name="page_nav()">
189
410101210923 removed search field from templates
Marcin Kuzminski <marcin@python-works.com>
parents: 183
diff changeset
16 ${self.menu('summary')}
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
17 </%def>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
18 <%def name="main()">
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
19 <h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
20 <dl class="overview">
82
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
21 <dt>${_('name')}</dt>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
22 <dd>${c.repo_info.name}</dd>
82
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
23 <dt>${_('description')}</dt>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
24 <dd>${c.repo_info.description}</dd>
82
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
25 <dt>${_('contact')}</dt>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
26 <dd>${c.repo_info.contact}</dd>
82
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
27 <dt>${_('last change')}</dt>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 82
diff changeset
28 <dd>${c.repo_info.last_change|n,filters.rfc822date} - ${c.repo_info.last_change|n,filters.age}</dd>
82
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
29 <dt>${_('url')}</dt>
150
b15d4ac75004 fixed pre margin for summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 149
diff changeset
30 <dd><pre style="margin:0">hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd>
210
6257cf277395 Css changes, added icon pack.
Marcin Kuzminski <marcin@python-works.com>
parents: 189
diff changeset
31 <dt>${_('download')}</dt>
82
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
32 <dd>
149
b3c93efd1c97 Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents: 146
diff changeset
33 %for cnt,archive in enumerate(c.repo_info._get_archives()):
b3c93efd1c97 Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents: 146
diff changeset
34 %if cnt >=1:
b3c93efd1c97 Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents: 146
diff changeset
35 |
b3c93efd1c97 Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents: 146
diff changeset
36 %endif
b3c93efd1c97 Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents: 146
diff changeset
37 ${h.link_to(c.repo_info.name+'.'+archive['type'],
b3c93efd1c97 Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents: 146
diff changeset
38 h.url('files_archive_home',repo_name=c.repo_info.name,
210
6257cf277395 Css changes, added icon pack.
Marcin Kuzminski <marcin@python-works.com>
parents: 189
diff changeset
39 revision='tip',fileformat=archive['extension']),class_="archive_logo")}
82
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
40 %endfor
670713507d03 Moved summary to seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 81
diff changeset
41 </dd>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
42 </dl>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
43
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
44 <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
45 <table>
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
46 <%def name="message_slug(msg)">
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
47 <%
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
48 limit = 60
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
49 if len(msg) > limit:
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
50 return msg[:limit]+'...'
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
51 else:
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
52 return msg
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
53 %>
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
54 </%def>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
55 %for cnt,cs in enumerate(c.repo_changesets):
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
56 <tr class="parity${cnt%2}">
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents: 82
diff changeset
57 <td>${cs._ctx.date()|n,filters.age}</td>
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
58 <td>${cs.author|n,filters.person}</td>
164
1231bbe1ab36 added revision to summary
Marcin Kuzminski <marcin@python-works.com>
parents: 156
diff changeset
59 <td>r${cs.revision}</td>
110
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
60 <td>
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
61 ${h.link_to(message_slug(cs.message),
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
62 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
63 title=cs.message)}
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
64 </td>
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
65 <td>
110
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
66 <span class="logtags">
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
67 <span class="branchtag">${cs.branch}</span>
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
68 %for tag in cs.tags:
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
69 <span class="tagtag">${tag}</span>
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
70 %endfor
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
71 </span>
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
72 </td>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
73 <td class="nowrap">
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
74 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
75 |
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
76 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))}
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
77 </td>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
78 </tr>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
79 %endfor
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
80 </table>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
81
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
82 <h2>${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</h2>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
83 <table>
126
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
84 %for cnt,tag in enumerate(c.repo_tags):
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
85 <tr class="parity${cnt%2}">
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
86 <td>${tag._ctx.date()|n,filters.age}</td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
87 <td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
88 <span class="logtags">
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
89 <span class="tagtag">${h.link_to(tag.tags[-1],h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}</span>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
90 </span>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
91 </td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
92 <td class="nowrap">
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
93 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
94 |
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
95 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag._short))}
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
96 </td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
97 </tr>
80
928416088790 reimplemented summary page,
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
98 %endfor
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
99 </table>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
100
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
101 <h2>${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</h2>
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
102 <table>
126
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
103 %for cnt,branch in enumerate(c.repo_branches):
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
104 <tr class="parity${cnt%2}">
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
105 <td>${branch._ctx.date()|n,filters.age}</td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
106 <td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
107 <span class="logtags">
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
108 <span class="branchtag">${h.link_to(branch.branch,h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}</span>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
109 </span>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
110 </td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
111 <td class="nowrap">
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
112 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
113 |
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
114 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch._short))}
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
115 </td>
cfddee9d3693 Updated summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 110
diff changeset
116 </tr>
80
928416088790 reimplemented summary page,
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
117 %endfor
74
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
118 </table>
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
119
cdf4fda66dd9 Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
120 </%def>