Show More
@@ -1,65 +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 | 38 | <a href="#" onclick="$('#entry-'+${l.user_log_id}).toggle();return false">${_('toggle')}</a> |
|
39 | 39 | <div id="entry-${l.user_log_id}" style="display: none"> |
|
40 | 40 | <pre>${h.json.dumps(l.action_data, indent=4, sort_keys=True)}</pre> |
|
41 | 41 | </div> |
|
42 | 42 | % else: |
|
43 |
${_('not available |
|
|
43 | <pre title="${_('data not available for v1 entries type')}">-</pre> | |
|
44 | 44 | % endif |
|
45 | 45 | </td> |
|
46 | 46 | <td class="td-componentname"> |
|
47 | 47 | %if l.repository is not None: |
|
48 | 48 | ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} |
|
49 | 49 | %else: |
|
50 | 50 | ${l.repository_name} |
|
51 | 51 | %endif |
|
52 | 52 | </td> |
|
53 | 53 | |
|
54 | 54 | <td class="td-time">${h.format_date(l.action_date)}</td> |
|
55 | 55 | <td class="td-ip">${l.user_ip}</td> |
|
56 | 56 | </tr> |
|
57 | 57 | %endfor |
|
58 | 58 | </table> |
|
59 | 59 | |
|
60 | 60 | <div class="pagination-wh pagination-left"> |
|
61 | 61 | ${c.audit_logs.pager('$link_previous ~2~ $link_next')} |
|
62 | 62 | </div> |
|
63 | 63 | %else: |
|
64 | 64 | ${_('No actions yet')} |
|
65 | 65 | %endif No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now