Mercurial > kallithea
comparison pylons_app/templates/summary.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 | 670713507d03 |
children | 25e01cb65282 |
comparison
equal
deleted
inserted
replaced
82:670713507d03 | 83:db39d0ca5308 |
---|---|
1 <%inherit file="base/base.html"/> | 1 <%inherit file="base/base.html"/> |
2 | 2 <%! |
3 from pylons_app.lib import filters | |
4 %> | |
3 <%def name="title()"> | 5 <%def name="title()"> |
4 ${_('Repository managment')} | 6 ${_('Repository managment')} |
5 </%def> | 7 </%def> |
6 <%def name="breadcrumbs()"> | 8 <%def name="breadcrumbs()"> |
7 ${h.link_to(u'Home',h.url('/'))} | 9 ${h.link_to(u'Home',h.url('/'))} |
17 <dd><input type="text" name="rev" /></dd> | 19 <dd><input type="text" name="rev" /></dd> |
18 </dl> | 20 </dl> |
19 </form> | 21 </form> |
20 | 22 |
21 <ul class="page-nav"> | 23 <ul class="page-nav"> |
22 <li class="current">summary</li> | 24 <li class="current">${_('summary')}</li> |
23 <li><a href="shortlog">shortlog</a></li> | 25 <li>${h.link(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li> |
24 <li><a href="log">changelog</a></li> | 26 <li><a href="log">changelog</a></li> |
25 <li><a href="graph/{node|short}">graph</a></li> | 27 <li><a href="graph/{node|short}">graph</a></li> |
26 <li><a href="tags">tags</a></li> | 28 <li><a href="tags">tags</a></li> |
27 <li><a href="branches">branches</a></li> | 29 <li><a href="branches">branches</a></li> |
28 <li><a href="file/{node|short}">files</a></li> | 30 <li><a href="file/{node|short}">files</a></li> |
37 <dt>${_('description')}</dt> | 39 <dt>${_('description')}</dt> |
38 <dd>${c.repo_info.description}</dd> | 40 <dd>${c.repo_info.description}</dd> |
39 <dt>${_('contact')}</dt> | 41 <dt>${_('contact')}</dt> |
40 <dd>${c.repo_info.contact}</dd> | 42 <dd>${c.repo_info.contact}</dd> |
41 <dt>${_('last change')}</dt> | 43 <dt>${_('last change')}</dt> |
42 <dd>${c.repo_info.last_change|n,self.f.rfc822date} - ${c.repo_info.last_change|n,self.f.age}</dd> | 44 <dd>${c.repo_info.last_change|n,filters.rfc822date} - ${c.repo_info.last_change|n,filters.age}</dd> |
43 <dt>${_('url')}</dt> | 45 <dt>${_('url')}</dt> |
44 <dd><pre>$ hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd> | 46 <dd><pre>$ hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd> |
45 <dt>${_('Download')}</dt> | 47 <dt>${_('Download')}</dt> |
46 <dd> | 48 <dd> |
47 %for archive in c.repo_info._get_archives(): | 49 %for archive in c.repo_info._get_archives(): |
55 | 57 |
56 <h2><a href="{url}shortlog">Changes</a></h2> | 58 <h2><a href="{url}shortlog">Changes</a></h2> |
57 <table> | 59 <table> |
58 %for cnt,cs in enumerate(c.repo_changesets): | 60 %for cnt,cs in enumerate(c.repo_changesets): |
59 <tr class="parity${cnt%2}"> | 61 <tr class="parity${cnt%2}"> |
60 <td>${cs._ctx.date()|n,self.f.age}</td> | 62 <td>${cs._ctx.date()|n,filters.age}</td> |
61 <td>${cs.author}</td> | 63 <td>${cs.author}</td> |
62 <td>${h.link_to(cs.message,h.url('rev/'+str(cs._ctx)))}</td> | 64 <td>${h.link_to(cs.message,h.url('rev/'+str(cs._ctx)))}</td> |
63 <td class="nowrap"> | 65 <td class="nowrap"> |
64 ${h.link_to(_('changeset'),h.url('file/'+str(cs._ctx)))} | 66 ${h.link_to(_('changeset'),h.url('file/'+str(cs._ctx)))} |
65 | | 67 | |