<%def name="booth(tile, poll)">

${_("Poll")}

%if can.poll.vote(poll):
${h.field_token()|n} %endif <% agents = tile.delegates_result(1) %> %if len(agents): %endif <% agents = tile.delegates_result(-1) %> %if len(agents): %endif <% agents = tile.delegates_result(0) %> %if len(agents): %endif
${_("Option")} ${_("Votes")} ${_("Percent")}
%if can.poll.vote(poll): %endif   ${_("Affirm")} ${poll.tally.num_for} ${tile.result_affirm}%
    %for agent in agents:
  • ${h.user.link(agent)|n}
  • %endfor
%if can.poll.vote(poll): %endif   ${_("Dissent")} ${poll.tally.num_against} ${tile.result_dissent}%
    %for agent in agents:
  • ${h.user.link(agent)|n}
  • %endfor
%if can.poll.vote(poll): %endif   ${_("Abstain")} ${poll.tally.num_abstain}  
    %for agent in agents:
  • ${h.user.link(agent)|n}
  • %endfor
%if can.poll.vote(poll): %endif ${_("%d votes") % len(poll.tally)}
%if can.poll.vote(poll):
%endif
%if poll.has_ended(): ${_("ended %s") % h.relative_time(tile.poll.end_time)|n} %else: ${_("began %s") % h.relative_time(tile.poll.begin_time)|n} %endif %if poll.can_end() and h.has_permission('poll.abort'): · ${_("cancel")} %endif