## -*- coding: utf-8 -*- <%namespace name="base" file="/base/base.mako"/>

${_('User Audit Logs')} - ${_ungettext('%s entry', '%s entries', c.user_log.item_count) % (c.user_log.item_count)}

${h.form(None, id_="filter_form", method="get")} ${h.end_form()}

${_('Example Queries')}

% if c.user_log: %for cnt,l in enumerate(c.user_log): %endfor
${_('Username')} ${_('Action')} ${_('Repository')} ${_('Date')} ${_('From IP')}
%if l.user is not None: ${base.gravatar_with_user(l.user.email)} %else: ${l.username} %endif ${h.action_parser(l)[0]()}
${h.literal(h.action_parser(l)[1]())}
%if l.repository is not None: ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} %else: ${l.repository_name} %endif ${h.format_date(l.action_date)} ${l.user_ip}
${c.user_log.pager('$link_previous ~2~ $link_next')}
% else: ${_('No actions yet')} % endif