file_authors_box.mako
40 lines
| 1.3 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | <%namespace name="base" file="/base/base.mako"/> | |||
% if c.authors: | ||||
r3697 | ||||
<table class="sidebar-right-content"> | ||||
r1927 | % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]): | |||
r4026 | <tr class="file_author"> | |||
r3697 | <td> | |||
r4026 | <% | |||
rc_user = h.discover_user(user) | ||||
%> | ||||
r3714 | % if not c.file_author: | |||
r4026 | ${base.gravatar(email, 16, user=rc_user, tooltip=True)} | |||
r3714 | % endif | |||
r4026 | <span class="user commit-author">${h.link_to_user(rc_user or user)}</span> | |||
r1927 | % if c.file_author: | |||
Liviu
|
r3653 | <span class="commit-date">- ${h.age_component(c.file_last_commit.date)}</span> | ||
r3713 | <a href="#ShowAuthors" onclick="showAuthors(this, ${("1" if c.annotate else "0")}); return false" class="action_link"> - ${_('Load All Authors')}</a> | |||
r1927 | % elif c.file_last_commit.author_email==email: | |||
<span> (${_('last author')})</span> | ||||
% endif | ||||
r3697 | </td> | |||
r1927 | ||||
r3697 | <td> | |||
r1927 | % if not c.file_author: | |||
r3697 | <code> | |||
r1927 | % if commits == 1: | |||
${commits} ${_('Commit')} | ||||
% else: | ||||
${commits} ${_('Commits')} | ||||
% endif | ||||
r3697 | </code> | |||
r1927 | % endif | |||
r3697 | </td> | |||
</tr> | ||||
r3706 | ||||
r1282 | % endfor | |||
r3697 | </table> | |||
r1282 | % endif | |||
r3697 | ||||