simple audit log display for objects, new style
authorTony Cook <tony@develop-help.com>
Tue, 27 Nov 2012 04:06:25 +0000 (15:06 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 27 Nov 2012 04:06:25 +0000 (15:06 +1100)
MANIFEST
site/templates/admin/include/oauditlog.tmpl [new file with mode: 0644]

index 55fffaa..556808e 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -574,6 +574,7 @@ site/templates/admin/include/auditentry.tmpl
 site/templates/admin/include/audithead.tmpl
 site/templates/admin/include/edit_common.tmpl
 site/templates/admin/include/message.tmpl
+site/templates/admin/include/oauditlog.tmpl
 site/templates/admin/include/order_list_filter.tmpl
 site/templates/admin/include/order_list_pages.tmpl
 site/templates/admin/include/site_menu.tmpl
diff --git a/site/templates/admin/include/oauditlog.tmpl b/site/templates/admin/include/oauditlog.tmpl
new file mode 100644 (file)
index 0000000..633ced8
--- /dev/null
@@ -0,0 +1,17 @@
+<h2><:= title | html -:></h2>
+<table>
+<:include admin/include/audithead.tmpl:>
+<:.for auditentry in log -:>
+<tr class="audit<:= auditentry.level | html:>">
+  <td class="col_when_at"><:= bse.date("%H:%M %d/%m/%Y", auditentry.when_at) | html :></td>
+  <td class="col_level"><:= auditentry.level_name | html:></td>
+  <td class="col_actor"><:= auditentry.actor_name | html:>
+</td>
+   <td class="col_what">
+     <:-= ( auditentry.facility eq "bse" ? "" : auditentry.facility _ ": ")
+           _ auditentry.component _ "/" _ auditentry.module _ "/"
+           _ auditentry.function | html -:>
+   </td>
+   <td class="col_msg"><:= auditentry.msg | html :></td>
+</tr><:.end for -:>
+</table>
\ No newline at end of file