summary.html
94 lines
| 2.8 KiB
| text/html
|
HtmlLexer
Marcin Kuzminski
|
r74 | <%inherit file="base/base.html"/> | |
<%def name="title()"> | |||
${_('Repository managment')} | |||
</%def> | |||
<%def name="breadcrumbs()"> | |||
${h.link_to(u'Home',h.url('/'))} | |||
/ | |||
${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} | |||
/ | |||
${_('summary')} | |||
</%def> | |||
<%def name="page_nav()"> | |||
Marcin Kuzminski
|
r82 | <form action="log"> | |
Marcin Kuzminski
|
r74 | <dl class="search"> | |
<dt><label>Search: </label></dt> | |||
<dd><input type="text" name="rev" /></dd> | |||
</dl> | |||
</form> | |||
<ul class="page-nav"> | |||
<li class="current">summary</li> | |||
Marcin Kuzminski
|
r82 | <li><a href="shortlog">shortlog</a></li> | |
<li><a href="log">changelog</a></li> | |||
<li><a href="graph/{node|short}">graph</a></li> | |||
<li><a href="tags">tags</a></li> | |||
<li><a href="branches">branches</a></li> | |||
<li><a href="file/{node|short}">files</a></li> | |||
</ul> | |||
Marcin Kuzminski
|
r74 | </%def> | |
<%def name="main()"> | |||
<h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2> | |||
<dl class="overview"> | |||
Marcin Kuzminski
|
r82 | <dt>${_('name')}</dt> | |
Marcin Kuzminski
|
r74 | <dd>${c.repo_info.name}</dd> | |
Marcin Kuzminski
|
r82 | <dt>${_('description')}</dt> | |
Marcin Kuzminski
|
r74 | <dd>${c.repo_info.description}</dd> | |
Marcin Kuzminski
|
r82 | <dt>${_('contact')}</dt> | |
Marcin Kuzminski
|
r74 | <dd>${c.repo_info.contact}</dd> | |
Marcin Kuzminski
|
r82 | <dt>${_('last change')}</dt> | |
Marcin Kuzminski
|
r81 | <dd>${c.repo_info.last_change|n,self.f.rfc822date} - ${c.repo_info.last_change|n,self.f.age}</dd> | |
Marcin Kuzminski
|
r82 | <dt>${_('url')}</dt> | |
<dd><pre>$ hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd> | |||
<dt>${_('Download')}</dt> | |||
<dd> | |||
%for archive in c.repo_info._get_archives(): | |||
| <a href="/${c.repo_info.name}/archive/${archive['node']}${archive['extension']}"> | |||
${c.repo_info.name}.${archive['type']} | |||
</a> | |||
%endfor | |||
| | |||
</dd> | |||
Marcin Kuzminski
|
r74 | </dl> | |
Marcin Kuzminski
|
r82 | <h2><a href="{url}shortlog">Changes</a></h2> | |
Marcin Kuzminski
|
r74 | <table> | |
%for cnt,cs in enumerate(c.repo_changesets): | |||
<tr class="parity${cnt%2}"> | |||
Marcin Kuzminski
|
r81 | <td>${cs._ctx.date()|n,self.f.age}</td> | |
Marcin Kuzminski
|
r74 | <td>${cs.author}</td> | |
Marcin Kuzminski
|
r80 | <td>${h.link_to(cs.message,h.url('rev/'+str(cs._ctx)))}</td> | |
Marcin Kuzminski
|
r74 | <td class="nowrap"> | |
Marcin Kuzminski
|
r80 | ${h.link_to(_('changeset'),h.url('file/'+str(cs._ctx)))} | |
Marcin Kuzminski
|
r74 | | | |
Marcin Kuzminski
|
r80 | ${h.link_to(_('files'),h.url('file/'+str(cs._ctx)))} | |
Marcin Kuzminski
|
r74 | </td> | |
</tr> | |||
%endfor | |||
<tr class="light"> | |||
Marcin Kuzminski
|
r82 | <td colspan="4"><a class="list" href="shortlog">...</a></td> | |
Marcin Kuzminski
|
r74 | </tr> | |
</table> | |||
Marcin Kuzminski
|
r82 | <h2><a href="{url}tags">${_('Tags')}</a></h2> | |
Marcin Kuzminski
|
r74 | <table> | |
Marcin Kuzminski
|
r80 | %for tag in c.repo_tags: | |
${tag} | |||
%endfor | |||
Marcin Kuzminski
|
r74 | <tr class="light"> | |
Marcin Kuzminski
|
r82 | <td colspan="3"><a class="list" href="tags">...</a></td> | |
Marcin Kuzminski
|
r74 | </tr> | |
</table> | |||
<h2 class="no-link">Branches</h2> | |||
<table> | |||
Marcin Kuzminski
|
r80 | %for branch in c.repo_branches: | |
${branch} | |||
%endfor | |||
Marcin Kuzminski
|
r74 | <tr class="light"> | |
Marcin Kuzminski
|
r82 | <td colspan="4"><a class="list" href="branches">...</a></td> | |
Marcin Kuzminski
|
r74 | </tr> | |
</table> | |||
</%def> |