branches_data.html
51 lines
| 2.2 KiB
| text/html
|
HtmlLexer
r1770 | %if c.repo_branches: | ||
r1782 | <div id="table_wrap" class="yui-skin-sam"> | ||
<table id="branches_data"> | |||
<thead> | |||
r547 | <tr> | ||
r1770 | <th class="left">${_('name')}</th> | ||
r547 | <th class="left">${_('date')}</th> | ||
r636 | <th class="left">${_('author')}</th> | ||
r547 | <th class="left">${_('revision')}</th> | ||
</tr> | |||
r1782 | </thead> | ||
r547 | %for cnt,branch in enumerate(c.repo_branches.items()): | ||
<tr class="parity${cnt%2}"> | |||
r636 | <td> | ||
<span class="logtags"> | |||
<span class="branchtag">${h.link_to(branch[0], | |||
r1770 | h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span> | ||
r636 | </span> | ||
r1770 | </td> | ||
<td><span class="tooltip" title="${h.age(branch[1].date)}">${branch[1].date}</span></td> | |||
r636 | <td title="${branch[1].author}">${h.person(branch[1].author)}</td> | ||
r1770 | <td> | ||
<div> | |||
<pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id)}">r${branch[1].revision}:${h.short_id(branch[1].raw_id)}</a></pre> | |||
</div> | |||
r1656 | </td> | ||
r1770 | </tr> | ||
r547 | %endfor | ||
r1440 | % if hasattr(c,'repo_closed_branches') and c.repo_closed_branches: | ||
%for cnt,branch in enumerate(c.repo_closed_branches.items()): | |||
<tr class="parity${cnt%2}"> | |||
<td> | |||
<span class="logtags"> | |||
<span class="branchtag">${h.link_to(branch[0]+' [closed]', | |||
h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span> | |||
</span> | |||
r1770 | </td> | ||
<td><span class="tooltip" title="${h.age(branch[1].date)}">${branch[1].date}</span></td> | |||
r1440 | <td title="${branch[1].author}">${h.person(branch[1].author)}</td> | ||
r1770 | <td> | ||
<div> | |||
<pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id)}">r${branch[1].revision}:${h.short_id(branch[1].raw_id)}</a></pre> | |||
</div> | |||
r1440 | </td> | ||
r1770 | </tr> | ||
r1440 | %endfor | ||
r1770 | %endif | ||
r547 | </table> | ||
r1782 | </div> | ||
r547 | %else: | ||
r1440 | ${_('There are no branches yet')} | ||
%endif |