Show More
@@ -1,65 +1,65 b'' | |||||
1 | <%namespace name="base" file="/base/base.mako"/> |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | %if c.audit_logs: |
|
3 | %if c.audit_logs: | |
4 | <table class="rctable admin_log"> |
|
4 | <table class="rctable admin_log"> | |
5 | <tr> |
|
5 | <tr> | |
6 | <th>${_('Username')}</th> |
|
6 | <th>${_('Username')}</th> | |
7 | <th>${_('Action')}</th> |
|
7 | <th>${_('Action')}</th> | |
8 | <th>${_('Action Data')}</th> |
|
8 | <th>${_('Action Data')}</th> | |
9 | <th>${_('Repository')}</th> |
|
9 | <th>${_('Repository')}</th> | |
10 | <th>${_('Date')}</th> |
|
10 | <th>${_('Date')}</th> | |
11 | <th>${_('IP')}</th> |
|
11 | <th>${_('IP')}</th> | |
12 | </tr> |
|
12 | </tr> | |
13 |
|
13 | |||
14 | %for cnt,l in enumerate(c.audit_logs): |
|
14 | %for cnt,l in enumerate(c.audit_logs): | |
15 | <tr class="parity${cnt%2}"> |
|
15 | <tr class="parity${cnt%2}"> | |
16 | <td class="td-user"> |
|
16 | <td class="td-user"> | |
17 | %if l.user is not None: |
|
17 | %if l.user is not None: | |
18 | ${base.gravatar_with_user(l.user.email)} |
|
18 | ${base.gravatar_with_user(l.user.email)} | |
19 | %else: |
|
19 | %else: | |
20 | ${l.username} |
|
20 | ${l.username} | |
21 | %endif |
|
21 | %endif | |
22 | </td> |
|
22 | </td> | |
23 | <td class="td-journalaction"> |
|
23 | <td class="td-journalaction"> | |
24 | % if l.version == l.VERSION_1: |
|
24 | % if l.version == l.VERSION_1: | |
25 | ${h.action_parser(l)[0]()} |
|
25 | ${h.action_parser(l)[0]()} | |
26 | % else: |
|
26 | % else: | |
27 | ${h.literal(l.action)} |
|
27 | ${h.literal(l.action)} | |
28 | % endif |
|
28 | % endif | |
29 |
|
29 | |||
30 | <div class="journal_action_params"> |
|
30 | <div class="journal_action_params"> | |
31 | % if l.version == l.VERSION_1: |
|
31 | % if l.version == l.VERSION_1: | |
32 | ${h.literal(h.action_parser(l)[1]())} |
|
32 | ${h.literal(h.action_parser(l)[1]())} | |
33 | % endif |
|
33 | % endif | |
34 | </div> |
|
34 | </div> | |
35 | </td> |
|
35 | </td> | |
36 | <td> |
|
36 | <td> | |
37 | % if l.version == l.VERSION_2: |
|
37 | % if l.version == l.VERSION_2: | |
38 | <a href="#" onclick="$('#entry-'+${l.user_log_id}).toggle();return false">${_('toggle')}</a> |
|
38 | <a href="#" onclick="$('#entry-'+${l.user_log_id}).toggle();return false">${_('toggle')}</a> | |
39 | <div id="entry-${l.user_log_id}" style="display: none"> |
|
39 | <div id="entry-${l.user_log_id}" style="display: none"> | |
40 | <pre>${h.json.dumps(l.action_data, indent=4, sort_keys=True)}</pre> |
|
40 | <pre>${h.json.dumps(l.action_data, indent=4, sort_keys=True)}</pre> | |
41 | </div> |
|
41 | </div> | |
42 | % else: |
|
42 | % else: | |
43 |
${_('not available |
|
43 | <pre title="${_('data not available for v1 entries type')}">-</pre> | |
44 | % endif |
|
44 | % endif | |
45 | </td> |
|
45 | </td> | |
46 | <td class="td-componentname"> |
|
46 | <td class="td-componentname"> | |
47 | %if l.repository is not None: |
|
47 | %if l.repository is not None: | |
48 | ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} |
|
48 | ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} | |
49 | %else: |
|
49 | %else: | |
50 | ${l.repository_name} |
|
50 | ${l.repository_name} | |
51 | %endif |
|
51 | %endif | |
52 | </td> |
|
52 | </td> | |
53 |
|
53 | |||
54 | <td class="td-time">${h.format_date(l.action_date)}</td> |
|
54 | <td class="td-time">${h.format_date(l.action_date)}</td> | |
55 | <td class="td-ip">${l.user_ip}</td> |
|
55 | <td class="td-ip">${l.user_ip}</td> | |
56 | </tr> |
|
56 | </tr> | |
57 | %endfor |
|
57 | %endfor | |
58 | </table> |
|
58 | </table> | |
59 |
|
59 | |||
60 | <div class="pagination-wh pagination-left"> |
|
60 | <div class="pagination-wh pagination-left"> | |
61 | ${c.audit_logs.pager('$link_previous ~2~ $link_next')} |
|
61 | ${c.audit_logs.pager('$link_previous ~2~ $link_next')} | |
62 | </div> |
|
62 | </div> | |
63 | %else: |
|
63 | %else: | |
64 | ${_('No actions yet')} |
|
64 | ${_('No actions yet')} | |
65 | %endif No newline at end of file |
|
65 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now