diff --git a/pylons_app/config/routing.py b/pylons_app/config/routing.py --- a/pylons_app/config/routing.py +++ b/pylons_app/config/routing.py @@ -34,7 +34,7 @@ def make_map(config): map.connect('changeset_home', '/{repo_name}/changeset/{revision}', controller='changeset', revision='tip') map.connect('summary_home', '/{repo_name}/summary', controller='summary') - map.connect('changelog_home', '/{repo_name}/changelog', controller='changelog') + map.connect('changelog_home', '/{repo_name}/changelog/{revision}', controller='changelog', revision='tip') map.connect('branches_home', '/{repo_name}/branches', controller='branches') map.connect('tags_home', '/{repo_name}/tags', controller='tags') map.connect('graph_home', '/{repo_name}/graph/{revision}', controller='graph', revision='tip') diff --git a/pylons_app/controllers/summary.py b/pylons_app/controllers/summary.py --- a/pylons_app/controllers/summary.py +++ b/pylons_app/controllers/summary.py @@ -27,6 +27,6 @@ class SummaryController(BaseController): 'repo_name':c.repo_name, } c.clone_repo_url = url(uri) - c.repo_tags = []#c.repo_info.get_tags(limit=10) - c.repo_branches = []#c.repo_info.get_branches(limit=10) + c.repo_tags = c.repo_info.tags[:10] + c.repo_branches = c.repo_info.branches[:10] return render('/summary.html') diff --git a/pylons_app/templates/summary.html b/pylons_app/templates/summary.html --- a/pylons_app/templates/summary.html +++ b/pylons_app/templates/summary.html @@ -35,7 +35,7 @@ from pylons_app.lib import filters
${_('last change')}
${c.repo_info.last_change|n,filters.rfc822date} - ${c.repo_info.last_change|n,filters.age}
${_('url')}
-
$ hg clone ${c.clone_repo_url}
+
hg clone ${c.clone_repo_url}
${_('Download')}
%for archive in c.repo_info._get_archives(): @@ -74,15 +74,41 @@ from pylons_app.lib import filters

${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}

- %for tag in c.repo_tags: - ${tag} + %for cnt,tag in enumerate(c.repo_tags): + + + + + + %endfor
${tag._ctx.date()|n,filters.age} + + ${h.link_to(tag.tags[-1],h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))} + + + ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))} + | + ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag._short))} +

${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}

- %for branch in c.repo_branches: - ${branch} + %for cnt,branch in enumerate(c.repo_branches): + + + + + + %endfor
${branch._ctx.date()|n,filters.age} + + ${h.link_to(branch.branch,h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))} + + + ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))} + | + ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch._short))} +