comparison pylons_app/templates/index.html @ 83:db39d0ca5308

implemented Shortlog as seperate controller, filters rewrite. Little html fixes
author Marcin Kuzminski <marcin@python-blog.com>
date Sun, 18 Apr 2010 11:23:10 +0200
parents 928416088790
children 2dc0c8e4f384
comparison
equal deleted inserted replaced
82:670713507d03 83:db39d0ca5308
1 ## -*- coding: utf-8 -*- 1 ## -*- coding: utf-8 -*-
2 2 <%!
3 from pylons_app.lib import filters
4 %>
3 <%inherit file="base/base.html"/> 5 <%inherit file="base/base.html"/>
4 <%def name="title()"> 6 <%def name="title()">
5 ${c.repos_prefix} Mercurial Repositories 7 ${c.repos_prefix} Mercurial Repositories
6 </%def> 8 </%def>
7 <%def name="breadcrumbs()"> 9 <%def name="breadcrumbs()">
36 </tr> 38 </tr>
37 %for cnt,repo in enumerate(c.repos_list): 39 %for cnt,repo in enumerate(c.repos_list):
38 <tr class="parity${cnt%2}"> 40 <tr class="parity${cnt%2}">
39 <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> 41 <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td>
40 <td>${repo['description']}</td> 42 <td>${repo['description']}</td>
41 <td>${repo['last_change']|n,self.f.age}</td> 43 <td>${repo['last_change']|n,filters.age}</td>
42 <td>r${repo['rev']}:<a href="/${repo['name']}/rev/${repo['tip']}/">${repo['tip']}</a></td> 44 <td>r${repo['rev']}:<a href="/${repo['name']}/rev/${repo['tip']}/">${repo['tip']}</a></td>
43 <td>${repo['contact']}</td> 45 <td>${repo['contact']}</td>
44 <td class="indexlinks"> 46 <td class="indexlinks">
45 %for archive in repo['repo_archives']: 47 %for archive in repo['repo_archives']:
46 <a href="/${repo['name']}/archive/${archive['node']}${archive['extension']}">${archive['type']}</a> 48 <a href="/${repo['name']}/archive/${archive['node']}${archive['extension']}">${archive['type']}</a>