##// END OF EJS Templates
file details view summary box changes, not yet finnished
file details view summary box changes, not yet finnished

File last commit:

r3653:db7a4a6a new-ui
r3653:db7a4a6a new-ui
Show More
file_authors_box.mako
30 lines | 1.0 KiB | application/x-mako | MakoHtmlLexer
<%namespace name="base" file="/base/base.mako"/>
% if c.authors:
<ul class="sidebar-right-content">
% for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]):
<li class="file_author">
<div class="tooltip" title="${h.tooltip(h.author_string(email))}">
<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>
% elif c.file_last_commit.author_email==email:
<span> (${_('last author')})</span>
% endif
% if not c.file_author:
<span>
% if commits == 1:
${commits} ${_('Commit')}
% else:
${commits} ${_('Commits')}
% endif
</span>
% endif
</div>
</li>
% endfor
</ul>
% endif
<a href="#" id="show_authors" class="action_link">${_('Show All')}</a>