<% purl = '%s-pg' % c.policy %>
${self.paging(h.do_pagination(c.page), 'settingsnumitemstop')}
% if not c.page.items: % endif % for policy in c.page.items: % endfor
${_('Policy Name')} ${_('Policy Type')} ${_('Enabled')} ${_('Actions')}
${_('No %(policy)s found') % dict(policy=c.policy_name)}
${h.literal('') if not policy.enabled else ''}${h.link_to(policy.name, url('policy-rulesets', policy_id=policy.id))}${h.literal('') if not policy.enabled else ''} ${h.literal('') if not policy.enabled else ''}${c.policy_name}${h.literal('') if not policy.enabled else ''} ${functions.item_status(policy.enabled)} ${h.link_to(h.literal(''), url('policy-edit', policy_id=policy.id), title=_("Edit Policy"))} ${h.link_to(h.literal(''), url('policy-del', policy_id=policy.id), title=_("Delete Policy"))}
${self.paging(h.do_pagination(c.page), 'settingsnumitemsbottom')}
<%def name="paging(page_nums, fieldname)"> % if c.page.page_count != 0:

${_('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.literal(''), url(purl, page=c.page.first_page))} ... % endif % if c.page.previous_page: ${h.link_to(h.literal(''), url(purl, page=c.page.previous_page))} % endif % for linkpage in page_nums: % if linkpage == c.page.page: ${linkpage} % else: ${h.link_to(h.literal(linkpage), url(purl, page=linkpage))} % endif % endfor % if c.page.next_page: ${h.link_to(h.literal(''), url(purl, page=c.page.next_page))} % 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.literal(''), url(purl, page=c.page.page_count))} % endif % if c.page.page_count != 0:
% else:
-
% endif <%def name="title()"> ${_('Settings :: Content Protection :: %(policy)s :: Showing page %(page)d of %(count)d pages.') % dict(page=c.page.page, count=c.page.page_count, policy=c.policy_name) if c.page.page_count != 0 else _('Settings :: Content Protection :: %(policy)s') % dict(policy=c.policy_name)} <%def name="heading()"> ${_('Settings :: Content Protection :: %(policy)s :: Showing page %(page)d of %(count)d pages.') % dict(page=c.page.page, count=c.page.page_count, policy=c.policy_name) if c.page.page_count != 0 else _('Settings :: Content Protection :: %(policy)s') % dict(policy=c.policy_name)} <%def name="headers()"> <%def name="submenu()"> <%def name="localscripts()"> ${h.javascript_link(h.media_url() + 'js/baruwa/settings.show.items.min.js')} <%namespace name="functions" file="../includes/functions.html"/> <%inherit file="../base.html"/>