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