Show More
@@ -34,7 +34,7 b' def make_map(config):' | |||||
34 |
|
34 | |||
35 | map.connect('changeset_home', '/{repo_name}/changeset/{revision}', controller='changeset', revision='tip') |
|
35 | map.connect('changeset_home', '/{repo_name}/changeset/{revision}', controller='changeset', revision='tip') | |
36 | map.connect('summary_home', '/{repo_name}/summary', controller='summary') |
|
36 | map.connect('summary_home', '/{repo_name}/summary', controller='summary') | |
37 | map.connect('changelog_home', '/{repo_name}/changelog', controller='changelog') |
|
37 | map.connect('changelog_home', '/{repo_name}/changelog/{revision}', controller='changelog', revision='tip') | |
38 | map.connect('branches_home', '/{repo_name}/branches', controller='branches') |
|
38 | map.connect('branches_home', '/{repo_name}/branches', controller='branches') | |
39 | map.connect('tags_home', '/{repo_name}/tags', controller='tags') |
|
39 | map.connect('tags_home', '/{repo_name}/tags', controller='tags') | |
40 | map.connect('graph_home', '/{repo_name}/graph/{revision}', controller='graph', revision='tip') |
|
40 | map.connect('graph_home', '/{repo_name}/graph/{revision}', controller='graph', revision='tip') |
@@ -27,6 +27,6 b' class SummaryController(BaseController):' | |||||
27 | 'repo_name':c.repo_name, |
|
27 | 'repo_name':c.repo_name, | |
28 | } |
|
28 | } | |
29 | c.clone_repo_url = url(uri) |
|
29 | c.clone_repo_url = url(uri) | |
30 |
c.repo_tags = [] |
|
30 | c.repo_tags = c.repo_info.tags[:10] | |
31 |
c.repo_branches = [] |
|
31 | c.repo_branches = c.repo_info.branches[:10] | |
32 | return render('/summary.html') |
|
32 | return render('/summary.html') |
@@ -35,7 +35,7 b' from pylons_app.lib import filters' | |||||
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> |
|
38 | <dd><pre>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 archive in c.repo_info._get_archives(): |
|
41 | %for archive in c.repo_info._get_archives(): | |
@@ -74,15 +74,41 b' from pylons_app.lib import filters' | |||||
74 |
|
74 | |||
75 | <h2>${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</h2> |
|
75 | <h2>${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</h2> | |
76 | <table> |
|
76 | <table> | |
77 | %for tag in c.repo_tags: |
|
77 | %for cnt,tag in enumerate(c.repo_tags): | |
78 | ${tag} |
|
78 | <tr class="parity${cnt%2}"> | |
|
79 | <td>${tag._ctx.date()|n,filters.age}</td> | |||
|
80 | <td></td> | |||
|
81 | <td> | |||
|
82 | <span class="logtags"> | |||
|
83 | <span class="tagtag">${h.link_to(tag.tags[-1],h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}</span> | |||
|
84 | </span> | |||
|
85 | </td> | |||
|
86 | <td class="nowrap"> | |||
|
87 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))} | |||
|
88 | | | |||
|
89 | ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag._short))} | |||
|
90 | </td> | |||
|
91 | </tr> | |||
79 | %endfor |
|
92 | %endfor | |
80 | </table> |
|
93 | </table> | |
81 |
|
94 | |||
82 | <h2>${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</h2> |
|
95 | <h2>${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</h2> | |
83 | <table> |
|
96 | <table> | |
84 | %for branch in c.repo_branches: |
|
97 | %for cnt,branch in enumerate(c.repo_branches): | |
85 | ${branch} |
|
98 | <tr class="parity${cnt%2}"> | |
|
99 | <td>${branch._ctx.date()|n,filters.age}</td> | |||
|
100 | <td></td> | |||
|
101 | <td> | |||
|
102 | <span class="logtags"> | |||
|
103 | <span class="branchtag">${h.link_to(branch.branch,h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}</span> | |||
|
104 | </span> | |||
|
105 | </td> | |||
|
106 | <td class="nowrap"> | |||
|
107 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))} | |||
|
108 | | | |||
|
109 | ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch._short))} | |||
|
110 | </td> | |||
|
111 | </tr> | |||
86 | %endfor |
|
112 | %endfor | |
87 | </table> |
|
113 | </table> | |
88 |
|
114 |
General Comments 0
You need to be logged in to leave comments.
Login now