Show More
@@ -1,30 +1,40 b'' | |||||
1 | <%namespace name="base" file="/base/base.mako"/> |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | % if c.authors: |
|
3 | % if c.authors: | |
4 | <ul class="sidebar-right-content"> |
|
4 | ||
|
5 | <table class="sidebar-right-content"> | |||
5 | % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]): |
|
6 | % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]): | |
6 | <li class="file_author"> |
|
7 | <tr class="file_author tooltip" title="${h.tooltip(h.author_string(email))}"> | |
7 | <div class="tooltip" title="${h.tooltip(h.author_string(email))}"> |
|
|||
8 | <span class="user commit-author">${h.link_to_user(user)}</span> |
|
|||
9 |
|
|
8 | ||
|
9 | <td> | |||
|
10 | <span class="user commit-author">${h.link_to_user(user)}</span> | |||
10 | % if c.file_author: |
|
11 | % if c.file_author: | |
11 | <span class="commit-date">- ${h.age_component(c.file_last_commit.date)}</span> |
|
12 | <span class="commit-date">- ${h.age_component(c.file_last_commit.date)}</span> | |
12 | % elif c.file_last_commit.author_email==email: |
|
13 | % elif c.file_last_commit.author_email==email: | |
13 | <span> (${_('last author')})</span> |
|
14 | <span> (${_('last author')})</span> | |
14 | % endif |
|
15 | % endif | |
|
16 | </td> | |||
15 |
|
|
17 | ||
|
18 | <td> | |||
16 | % if not c.file_author: |
|
19 | % if not c.file_author: | |
17 |
< |
|
20 | <code> | |
18 | % if commits == 1: |
|
21 | % if commits == 1: | |
19 | ${commits} ${_('Commit')} |
|
22 | ${commits} ${_('Commit')} | |
20 | % else: |
|
23 | % else: | |
21 | ${commits} ${_('Commits')} |
|
24 | ${commits} ${_('Commits')} | |
22 | % endif |
|
25 | % endif | |
23 |
</ |
|
26 | </code> | |
24 | % endif |
|
27 | % endif | |
25 |
</d |
|
28 | </td> | |
26 |
</ |
|
29 | </tr> | |
|
30 | <tr> | |||
|
31 | <td colspan="2"> | |||
|
32 | % if c.file_author: | |||
|
33 | <a href="#ShowAuthors" id="show_authors" class="action_link">${_('Show Authors')}</a> | |||
|
34 | % endif | |||
|
35 | </td> | |||
|
36 | </tr> | |||
27 | % endfor |
|
37 | % endfor | |
28 |
</ |
|
38 | </table> | |
29 | % endif |
|
39 | % endif | |
30 | <a href="#" id="show_authors" class="action_link">${_('Show All')}</a> |
|
40 |
General Comments 0
You need to be logged in to leave comments.
Login now