<%~get_cgi_value('poll_view')%>
<%~if cgi_poll_view eq 'vote_view'%>
<%~Poll::list($current_poll, 'vote_view')%>
<%~elsif cgi_poll_view eq 'results_view'%>
<%~Poll::list($current_poll, 'results_view')%>
<%~else%>
<%~Poll::list($current_poll)%>
<%~endif%>

<%~if poll_loop.length%>
<div class="widget poll">
  <h2>Poll</h2>
  <div id="poll">
<%loop poll_loop%>
  <%if remote eq 'view'%>
    <%include include_poll_result.html%>
  <%elsif no_results%>
    <%include include_poll.html%>
  <%else%>
    <%include include_poll_result.html%>
  <%endif%>
<%endloop%>
  </div>
</div>
<%~if slowtwitch_forum%>
<div class="widget-divider"></div>
<%~endif%>
<%~endif%>
