##// END OF EJS Templates
authn: Make the legacy plugin import more robust if something fails during import.
authn: Make the legacy plugin import more robust if something fails during import.

File last commit:

r1:854a839a default
r134:5edcb8e3 default
Show More
file_authors_box.html
36 lines | 1.2 KiB | text/html | HtmlLexer
<%namespace name="base" file="/base/base.html"/>
<div class="summary-detail-header">
<h4 class="item">
% if c.file_author:
${_('Last Author')}
% else:
${h.literal(ungettext(u'File Author (%s)',u'File Authors (%s)',len(c.authors)) % ('<b>%s</b>' % len(c.authors))) }
% endif
</h4>
<a href="#" id="show_authors" class="action_link">${_('Show All')}</a>
</div>
% if c.authors:
<ul class="pull-left">
% for email, user in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]):
<li class="file_author">
<div class="contributor tooltip" title="${h.tooltip(user)}">
${base.gravatar(email, 16)}
<span class="author user">
## case initial page load we only have last commit author
% if c.file_author:
${h.link_to_user(user)} - ${h.age_component(c.file_last_commit.date)}
% else:
% if c.file_last_commit.author_email==email:
<strong>${h.link_to_user(user)}</strong> (${_('last author')})
% else:
${h.link_to_user(user)}
% endif
% endif
</span>
</div>
</li>
% endfor
</ul>
% endif