branches_data.html
68 lines
| 3.0 KiB
| text/html
|
HtmlLexer
r1770 | %if c.repo_branches: | |||
r1888 | <div id="table_wrap" class="yui-skin-sam"> | |||
r1782 | <table id="branches_data"> | |||
<thead> | ||||
r547 | <tr> | |||
|
r4116 | <th class="left">Raw name</th> ##notranslation | ||
r3010 | <th class="left">${_('Name')}</th> | |||
|
r4116 | <th class="left">Raw date</th> ##notranslation | ||
r3010 | <th class="left">${_('Date')}</th> | |||
<th class="left">${_('Author')}</th> | ||||
|
r4116 | <th class="left">Raw rev</th> ##notranslation | ||
r3010 | <th class="left">${_('Revision')}</th> | |||
<th class="left">${_('Compare')}</th> | ||||
r547 | </tr> | |||
r1782 | </thead> | |||
|
r3197 | %for cnt,branch in enumerate(c.repo_branches.items()): | ||
<tr class="parity${cnt%2}"> | ||||
|
r4116 | <td>${branch[0]}</td> | ||
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> | |||
r1888 | </span> | |||
r1770 | </td> | |||
|
r4116 | <td>${branch[1]._timestamp}</td> | ||
r2427 | <td><span class="tooltip" title="${h.tooltip(h.age(branch[1].date))}">${h.fmt_date(branch[1].date)}</span></td> | |||
r636 | <td title="${branch[1].author}">${h.person(branch[1].author)}</td> | |||
|
r4116 | <td>${branch[1].revision}</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> | ||||
r1888 | </div> | |||
r1656 | </td> | |||
r2243 | <td> | |||
<input class="branch-compare" type="radio" name="compare_org" value="${branch[0]}"/> | ||||
<input class="branch-compare" type="radio" name="compare_other" value="${branch[0]}"/> | ||||
</td> | ||||
|
r3197 | </tr> | ||
%endfor | ||||
|
r4116 | ## closed branches if any | ||
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}"> | ||||
|
r4116 | <td>${branch[0]}</td> | ||
r1440 | <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> | ||||
r1888 | </span> | |||
r1770 | </td> | |||
|
r4116 | <td>${branch[1]._timestamp}</td> | ||
r2427 | <td><span class="tooltip" title="${h.tooltip(h.age(branch[1].date))}">${h.fmt_date(branch[1].date)}</span></td> | |||
r1440 | <td title="${branch[1].author}">${h.person(branch[1].author)}</td> | |||
|
r4116 | <td>${branch[1].revision}</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> | |||
r2243 | <td></td> | |||
r1770 | </tr> | |||
r1440 | %endfor | |||
r1770 | %endif | |||
r547 | </table> | |||
r1782 | </div> | |||
r547 | %else: | |||
r1440 | ${_('There are no branches yet')} | |||
r1888 | %endif | |||