##// END OF EJS Templates
files: updated based on new design
files: updated based on new design

File last commit:

r3706:9aa2b595 new-ui
r3706:9aa2b595 new-ui
Show More
file_authors_box.mako
35 lines | 1.1 KiB | application/x-mako | MakoHtmlLexer
<%namespace name="base" file="/base/base.mako"/>
% if c.authors:
<table class="sidebar-right-content">
% for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]):
<tr class="file_author tooltip" title="${h.tooltip(h.author_string(email))}">
<td>
<span class="user commit-author">${h.link_to_user(user)}</span>
% if c.file_author:
<span class="commit-date">- ${h.age_component(c.file_last_commit.date)}</span>
<a href="#ShowAuthors" id="show_authors" class="action_link"> - ${_('Load All Authors')}</a>
% elif c.file_last_commit.author_email==email:
<span> (${_('last author')})</span>
% endif
</td>
<td>
% if not c.file_author:
<code>
% if commits == 1:
${commits} ${_('Commit')}
% else:
${commits} ${_('Commits')}
% endif
</code>
% endif
</td>
</tr>
% endfor
</table>
% endif