branches_data.html
47 lines
| 2.1 KiB
| text/html
|
HtmlLexer
r1770 | %if c.repo_branches: | ||
r547 | <table class="table_disp"> | ||
<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> | |||
%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> | ||
%else: | |||
r1440 | ${_('There are no branches yet')} | ||
%endif |