file_authors_box.mako
31 lines
| 985 B
| application/x-mako
|
MakoHtmlLexer
r1282 | <%namespace name="base" file="/base/base.mako"/> | |||
% if c.authors: | ||||
<ul class="sidebar-right-content"> | ||||
r1927 | % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]): | |||
r1282 | <li class="file_author"> | |||
r1927 | <div class="tooltip" title="${h.tooltip(h.author_string(email))}"> | |||
r1282 | ${base.gravatar(email, 16)} | |||
r1927 | <div class="user">${h.link_to_user(user)}</div> | |||
% if c.file_author: | ||||
<span>- ${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 | ||||
r1282 | </div> | |||
</li> | ||||
% endfor | ||||
</ul> | ||||
% endif | ||||