Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$header(formurl,breadcrumbs,shortcuts)$

<ul id="audit_manage" class="toolbar">
$if(debug)$
	<li><a class="audit_debug" href="$formurl$/audit?limit=5000$filter$">Hide debug messages</a></li>
$else$
	<li><a class="audit_debug" href="$formurl$/audit?debug=true&limit=5000$filter$">Show debug messages</a></li>
$endif$
	<li><a class="audit_download" href="$formurl$/audit.download">Download CSV</a></li>
</ul>

<!--$if(error)$--><div class="error">$error$</div><!--$endif$-->

<div class="audit_log yellow_box">

<h3>Audit log</h3>

$if(!first(audit))$
No audit trail entries.
$else$
<table class="audit_log">
<tr>
<th>Time</th>
<th>Level</th>
<th>Person</th>
<th>Message</th>
<th>IP</th>
</tr>
$audit:{a|
<tr class="$a.level$">
    <td>$a.date;format="log"$</td>
    <td>$a.level;format="html"$</td>
    <td class="ip">$if(a.ip)$<a href="$formurl$/audit?ip=$a.ip$$debug_param$">$endif$$a.ip;format="html"$$if(a.ip)$</a>$endif$</td>
    <td>$if(a.personUuid)$<a href="$formurl$/audit?person=$a.personUuid$$debug_param$">$endif$$a.displayName;format="html"$$if(a.personUuid)$</a>$endif$</td>
    <td>$a.message;format="html"$</td>
</tr>
}$
</table>
$endif$
</div>

$footer()$
New to GrepCode? Check out our FAQ X