<%def name="votes(poll)"> <% tally = poll.tally num_votes = len(tally) url = h.entity_url(poll, member='votes') if check.poll.show(poll): tpl = _('A total of %(votes)s votes, thereof %(for)s ayes and %(against)s nays') else: tpl = _('A total of %(votes)s votes, thereof %(for)s ayes and %(against)s nays') para = tpl % {'url': url, 'for': tally.num_for, 'against': tally.num_against, 'votes': num_votes} %>
${_('Votes')}

${para|n}

<%def name="votedetail(vd)"> %if vd:
${_('Votes by User Group')}
%for v in vd:
${v['badge']['title']}
${v['tally']['num_for']} : ${v['tally']['num_against']}
%endfor
%endif <%def name="shortlink(delegateable)"> <% shortlink = h.site.shortlink_url(delegateable) %>
${_('Shortlink')}

${shortlink}