${s.searchbox(url('status-audit-logs'))}
${self.paging(h.do_pagination(c.page), 'auditlogtop')}
% if not c.page.items: % endif <% from baruwa.model.status import CATEGORY_MAP value = 'white' %> % for item in c.page.items: % endfor
${_('Date/Time')} ${_('Username')} ${_('Info')} ${_('Hostname')} ${_('Remote IP')} ${_('Category')}
${_('No audit logs found')}
${h.datetimeformat(h.format_date(item.timestamp, c.tzinfo), '%Y-%m-%d %H:%M:%S')} ${item.username} ${item.info} ${item.hostname} ${item.remoteip} ${CATEGORY_MAP[item.category]}
${self.paging(h.do_pagination(c.page), 'auditlogbottom')}
<%def name="heading()">\ ${_('Status :: Audit log ')} % if c.page.page_count != 0: ${ungettext(':: Showing page %(n)d of %(c)d page.', ':: Showing page %(n)d of %(c)d pages.', c.page.page_count) % dict(n=c.page.page, c=c.page.page_count)} % endif <%def name="title()">\ ${_('Status :: Audit log ')} % if c.page.page_count != 0: ${ungettext(':: Showing page %(n)d of %(c)d page.', ':: Showing page %(n)d of %(c)d pages.', c.page.page_count) % dict(n=c.page.page, c=c.page.page_count)} % endif <%def name="paging(page_nums, fieldname)"> % if c.page.page_count != 0: <% kwd = {} if c.q: kwd['q'] = c.q %>

${_('Showing items %(i)d to %(l)d of %(count)d') % dict(i=c.page.first_item, l=c.page.last_item, count=c.page.item_count)}.

${_('Show items:')} ${h.pager_select(fieldname, str(c.page.items_per_page))} ${_('per page')}
% if c.page.page_count == 1: - % endif % else:

${_('No items found')}

% endif % if c.page.next_page != c.page.first_page and c.page.page != c.page.first_page: ${h.link_to(h.pager_img('first'), url('status-audit-log-paged', page=1, **kwd))} ... % endif % if c.page.previous_page: ${h.link_to(h.pager_img('previous'), url('status-audit-log-paged', page=c.page.previous_page, **kwd))} % endif % for linkpage in page_nums: % if linkpage == c.page.page: ${linkpage} % else: ${h.link_to(h.literal(linkpage), url('status-audit-log-paged', page=linkpage, **kwd))} % endif % endfor % if c.page.next_page: ${h.link_to(h.pager_img('next'), url('status-audit-log-paged', page=c.page.next_page, **kwd))} % endif % if c.page.next_page != c.page.page_count and c.page.page != c.page.page_count and c.page.page_count != 0: ... ${h.link_to(h.pager_img('last'), url('status-audit-log-paged', page=c.page.page_count, **kwd))} % endif % if c.page.page_count != 0:
% else:
-
% endif <%def name="headers()">\ <%def name="localscripts()">\ ${h.javascript_link(h.media_url() + 'js/jquery.address-1.4.min.js', h.media_url() + 'js/baruwa/status.audit.js')} <%namespace name="s" file="/includes/search.html"/> <%inherit file="/base.html"/>