# HG changeset patch # User Marcin Kuzminski # Date 1272904260 -7200 # Node ID cfddee9d3693c77aa200730eeb98b738a06fbc9b # Parent 2811259dc12d16057f404b9ad42bd153f6bf243b Updated summary page diff -r 2811259dc12d -r cfddee9d3693 pylons_app/config/routing.py --- a/pylons_app/config/routing.py Thu Apr 29 01:26:20 2010 +0200 +++ b/pylons_app/config/routing.py Mon May 03 18:31:00 2010 +0200 @@ -34,7 +34,7 @@ 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 -r 2811259dc12d -r cfddee9d3693 pylons_app/controllers/summary.py --- a/pylons_app/controllers/summary.py Thu Apr 29 01:26:20 2010 +0200 +++ b/pylons_app/controllers/summary.py Mon May 03 18:31:00 2010 +0200 @@ -27,6 +27,6 @@ '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 -r 2811259dc12d -r cfddee9d3693 pylons_app/templates/summary.html --- a/pylons_app/templates/summary.html Thu Apr 29 01:26:20 2010 +0200 +++ b/pylons_app/templates/summary.html Mon May 03 18:31:00 2010 +0200 @@ -35,7 +35,7 @@
${_('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 @@

${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))} +