<% if (user.is_deleted) { %> <%- user.name %> <% } else { %> <%- user.name %> <% } %>
<% var items = []; switch (object_type) { case 'proxy-host': %> <% items = meta.domain_names; break; case 'redirection-host': %> <% items = meta.domain_names; break; case 'stream': %> <% items.push(meta.incoming_port); break; case 'dead-host': %> <% items = meta.domain_names; break; case 'access-list': %> <% items.push(meta.name); break; case 'user': %> <% items.push(meta.name); break; } %> <%- i18n('audit-log', action, {name: i18n('audit-log', object_type)}) %> — <% if (items && items.length) { items.map(function(item) { %> <%- item %> <% }); } else { %> #<%- object_id %> <% } %>
<%- formatDbDate(created_on, 'Do MMMM YYYY, h:mm a') %>
<%- i18n('audit-log', 'view-meta') %>