Show More
@@ -1,60 +1,74 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%namespace name="base" file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | %if c.users_log: |
|
5 | 5 | <table class="rctable admin_log"> |
|
6 | 6 | <tr> |
|
7 | 7 | <th>${_('Username')}</th> |
|
8 | 8 | <th>${_('Action')}</th> |
|
9 | <th>${_('Action Data')}</th> | |
|
9 | 10 | <th>${_('Repository')}</th> |
|
10 | 11 | <th>${_('Date')}</th> |
|
11 |
<th>${_(' |
|
|
12 | <th>${_('IP')}</th> | |
|
12 | 13 | </tr> |
|
13 | 14 | |
|
14 | 15 | %for cnt,l in enumerate(c.users_log): |
|
15 | 16 | <tr class="parity${cnt%2}"> |
|
16 | 17 | <td class="td-user"> |
|
17 | 18 | %if l.user is not None: |
|
18 | 19 | ${base.gravatar_with_user(l.user.email)} |
|
19 | 20 | %else: |
|
20 | 21 | ${l.username} |
|
21 | 22 | %endif |
|
22 | 23 | </td> |
|
23 |
<td class="td-journalaction"> |
|
|
24 | <td class="td-journalaction"> | |
|
25 | % if l.version == l.VERSION_1: | |
|
26 | ${h.action_parser(l)[0]()} | |
|
27 | % else: | |
|
28 | ${h.literal(l.action)} | |
|
29 | % endif | |
|
30 | ||
|
24 | 31 | <div class="journal_action_params"> |
|
32 | % if l.version == l.VERSION_1: | |
|
25 | 33 | ${h.literal(h.action_parser(l)[1]())} |
|
34 | % endif | |
|
26 | 35 | </div> |
|
27 | 36 | </td> |
|
37 | <td> | |
|
38 | % if l.version == l.VERSION_2: | |
|
39 | ${l.action_data} | |
|
40 | % endif | |
|
41 | </td> | |
|
28 | 42 | <td class="td-componentname"> |
|
29 | 43 | %if l.repository is not None: |
|
30 | 44 | ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} |
|
31 | 45 | %else: |
|
32 | 46 | ${l.repository_name} |
|
33 | 47 | %endif |
|
34 | 48 | </td> |
|
35 | 49 | |
|
36 | 50 | <td class="td-time">${h.format_date(l.action_date)}</td> |
|
37 | 51 | <td class="td-ip">${l.user_ip}</td> |
|
38 | 52 | </tr> |
|
39 | 53 | %endfor |
|
40 | 54 | </table> |
|
41 | 55 | |
|
42 | 56 | <div class="pagination-wh pagination-left"> |
|
43 | 57 | ${c.users_log.pager('$link_previous ~2~ $link_next')} |
|
44 | 58 | </div> |
|
45 | 59 | %else: |
|
46 | 60 | ${_('No actions yet')} |
|
47 | 61 | %endif |
|
48 | 62 | |
|
49 | 63 | <script type="text/javascript"> |
|
50 | 64 | $(function(){ |
|
51 | 65 | //because this is loaded on every pjax request, it must run only once |
|
52 | 66 | //therefore the .one method |
|
53 | 67 | $(document).on('pjax:complete',function(){ |
|
54 | 68 | show_more_event(); |
|
55 | 69 | }); |
|
56 | 70 | |
|
57 | 71 | $(document).pjax('#user_log .pager_link', '#user_log'); |
|
58 | 72 | }); |
|
59 | 73 | </script> |
|
60 | 74 |
General Comments 0
You need to be logged in to leave comments.
Login now