admin_audit_log_entry.mako
115 lines
| 3.6 KiB
| application/x-mako
|
MakoHtmlLexer
r2110 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.mako"/> | ||||
<%namespace name="base" file="/base/base.mako"/> | ||||
<%def name="title()"> | ||||
${_('Admin audit log entry')} | ||||
%if c.rhodecode_name: | ||||
· ${h.branding(c.rhodecode_name)} | ||||
%endif | ||||
</%def> | ||||
r3589 | <%def name="breadcrumbs_links()"></%def> | |||
r2110 | ||||
<%def name="menu_bar_nav()"> | ||||
${self.menu_items(active='admin')} | ||||
</%def> | ||||
r3589 | ||||
<%def name="menu_bar_subnav()"> | ||||
${self.admin_menu(active='audit_logs')} | ||||
</%def> | ||||
r2110 | <%def name="main()"> | |||
<div class="box"> | ||||
r3589 | ||||
r2110 | <div class="title"> | |||
r3589 | ${_('Audit long entry')} ${c.audit_log_entry.entry_id} | |||
r2110 | </div> | |||
r3589 | ||||
r2110 | <div class="table"> | |||
<div id="user_log"> | ||||
<table class="rctable audit-log"> | ||||
<tr> | ||||
<td> | ||||
${_('User')}: | ||||
</td> | ||||
<td> | ||||
%if c.audit_log_entry.user is not None: | ||||
${base.gravatar_with_user(c.audit_log_entry.user.email)} | ||||
%else: | ||||
${c.audit_log_entry.username} | ||||
%endif | ||||
</td> | ||||
</tr> | ||||
<tr> | ||||
<td> | ||||
${_('Date')}: | ||||
</td> | ||||
<td> | ||||
${h.format_date(c.audit_log_entry.action_date)} | ||||
</td> | ||||
</tr> | ||||
<tr> | ||||
<td> | ||||
${_('IP')}: | ||||
</td> | ||||
<td> | ||||
${c.audit_log_entry.user_ip} | ||||
</td> | ||||
</tr> | ||||
<tr> | ||||
<td> | ||||
${_('Action')}: | ||||
</td> | ||||
<td> | ||||
% if c.audit_log_entry.version == c.audit_log_entry.VERSION_1: | ||||
r2351 | ${h.action_parser(request, l)[0]()} | |||
r2110 | % else: | |||
${h.literal(c.audit_log_entry.action)} | ||||
% endif | ||||
<div class="journal_action_params"> | ||||
% if c.audit_log_entry.version == c.audit_log_entry.VERSION_1: | ||||
r2351 | ${h.literal(h.action_parser(request, l)[1]())} | |||
r2110 | % endif | |||
</div> | ||||
</td> | ||||
</tr> | ||||
<tr> | ||||
<td> | ||||
${_('Action Data')}: | ||||
</td> | ||||
<td class="td-journalaction"> | ||||
% if c.audit_log_entry.version == c.audit_log_entry.VERSION_2: | ||||
<div> | ||||
r4974 | <pre>${h.formatted_str_json(c.audit_log_entry.action_data)}</pre> | |||
r2110 | </div> | |||
% else: | ||||
<pre title="${_('data not available for v1 entries type')}">-</pre> | ||||
% endif | ||||
</td> | ||||
</tr> | ||||
<tr> | ||||
<td> | ||||
${_('Repository')}: | ||||
</td> | ||||
<td class="td-journalaction"> | ||||
%if c.audit_log_entry.repository is not None: | ||||
${h.link_to(c.audit_log_entry.repository.repo_name, h.route_path('repo_summary',repo_name=c.audit_log_entry.repository.repo_name))} | ||||
%else: | ||||
${c.audit_log_entry.repository_name or '-'} | ||||
%endif | ||||
</td> | ||||
</tr> | ||||
</table> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
<script> | ||||
$('#j_filter').autoGrowInput(); | ||||
</script> | ||||
</%def> | ||||