%def name="widget(tile, poll, cls='', deactivated=False, delegate_url=None, need_auth=False)"> ## cls='' -> normal (small) vote widget. ## cls='big' -> big vote widget ## styles: /static/stylesheets/screen/content.css ## deactivated: Should the widget be deactivated? (e.g. out of the voting phase) ## need_auth: Redirect user to login page. ## FIXME: Render vote_up/vote_down as span's if the user already has that ## position. ## FIXME: Render the vote_count as a link to the votes listing <% pro = tile.widget_action_attrs(model.Vote.YES) con = tile.widget_action_attrs(model.Vote.NO) %>