%def name="print_rows(route, isqtne=None)">\ % if isqtne: <% ids = [field(class_='selector') for field in c.form.message_id] %> % endif
% if c.page.items: % for index, msg in enumerate(c.page.items): <% value = 'white' if (msg.spam and not msg.highspam and not msg.blacklisted and not msg.nameinfected and not msg.otherinfected and not msg.virusinfected): value = 'spam' if msg.highspam and (not msg.blacklisted): value = 'highspam' if msg.whitelisted: value = 'whitelisted' if msg.blacklisted: value = 'blacklisted' if msg.nameinfected or msg.virusinfected or msg.otherinfected: value = 'infected' if not msg.scaned: value = 'notscanned' view_url = url(route, msgid=msg.id) if (msg.spam and (not msg.blacklisted) and (not msg.virusinfected) and (not msg.nameinfected) and (not msg.otherinfected)): status = _('Spam') if msg.blacklisted: status = _('BS') if (msg.virusinfected or msg.nameinfected or msg.otherinfected): status = _('Infected') if ((not msg.spam) and (not msg.virusinfected) and (not msg.nameinfected) and (not msg.otherinfected) and (not msg.whitelisted)): status = _('Clean') if msg.whitelisted: status = _('AS') if not msg.scaned: status = _('NS') if msg.from_address == '': from_addr = '<>' else: from_addr = msg.from_address %> % if isqtne: % if index < len(ids):${_('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)}.
${_('No items found')}
% endif % if c.page.next_page != c.page.first_page and c.page.page != c.page.first_page: % if hasattr(c, 'section') and c.section: ${h.link_to(h.literal(''), url('messages-qtn-paging', action=action, page=c.page.first_page, direction=c.direction, order_by=c.order_by, section=c.section))} % else: ${h.link_to(h.literal(''), url('messages-paging', action=action, page=c.page.first_page, direction=c.direction, order_by=c.order_by))} % endif ... % endif % if c.page.previous_page: % if hasattr(c, 'section') and c.section: ${h.link_to(h.literal(''), url('messages-qtn-paging', action=action, page=c.page.previous_page, direction=c.direction, order_by=c.order_by, section=c.section))} % else: ${h.link_to(h.literal(''), url('messages-paging', action=action, page=c.page.previous_page, direction=c.direction, order_by=c.order_by))} % endif % endif % for linkpage in page_nums: % if linkpage == c.page.page: ${linkpage} % else: % if hasattr(c, 'section') and c.section: ${h.link_to(h.literal(linkpage), url('messages-qtn-paging', action=action, page=linkpage, direction=c.direction, order_by=c.order_by, section=c.section))} % else: ${h.link_to(h.literal(linkpage), url('messages-paging', action=action, page=linkpage, direction=c.direction, order_by=c.order_by))} % endif % endif % endfor % if c.page.next_page: % if hasattr(c, 'section') and c.section: ${h.link_to(h.literal(''), url('messages-qtn-paging', action=action, page=c.page.next_page, direction=c.direction, order_by=c.order_by, section=c.section))} % else: ${h.link_to(h.literal(''), url('messages-paging', action=action, page=c.page.next_page, direction=c.direction, order_by=c.order_by))} % endif % endif % if c.page.next_page != c.page.page_count and c.page.page != c.page.page_count and c.page.page_count != 0: ... % if hasattr(c, 'section') and c.section: ${h.link_to(h.literal(''), url('messages-qtn-paging', action=action, page=c.page.page_count, direction=c.direction, order_by=c.order_by, section=c.section))} % else: ${h.link_to(h.literal(''), url('messages-paging', action=action, page=c.page.page_count, direction=c.direction, order_by=c.order_by))} % endif % endif % if c.page.page_count != 0: