%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} %>
${para|n}
%def> <%def name="votedetail(vd)"> %if vd: