##// END OF EJS Templates
webhook: quote URL variables to prevent url errors with special chars like # in pr title.
webhook: quote URL variables to prevent url errors with special chars like # in pr title.

File last commit:

r1927:e6df2b71 default
r3477:976a0af2 default
Show More
file_authors_box.mako
42 lines | 1.3 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%namespace name="base" file="/base/base.mako"/>
<div class="summary-detail-header">
<h4 class="item">
% if c.file_author:
${_('Last Author')}
% else:
files: ported repository files controllers to pyramid views.
r1927 ${h.literal(_ungettext(u'File Author (%s)',u'File Authors (%s)',len(c.authors)) % ('<b>%s</b>' % len(c.authors))) }
templating: use .mako as extensions for template files.
r1282 % endif
</h4>
<a href="#" id="show_authors" class="action_link">${_('Show All')}</a>
</div>
% if c.authors:
<ul class="sidebar-right-content">
files: ported repository files controllers to pyramid views.
r1927 % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]):
templating: use .mako as extensions for template files.
r1282 <li class="file_author">
files: ported repository files controllers to pyramid views.
r1927 <div class="tooltip" title="${h.tooltip(h.author_string(email))}">
templating: use .mako as extensions for template files.
r1282 ${base.gravatar(email, 16)}
files: ported repository files controllers to pyramid views.
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
templating: use .mako as extensions for template files.
r1282 </div>
</li>
% endfor
</ul>
% endif