Sha256: 6ee10c1becf8d9417829c8e274dba1ff7d7e68bea1abb0eabe3023b37e3c8fdd
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
<% choice = Choice.find_by_elt_id_and_person_id elt.id, (session[:person] ? session[:person].id : nil) result = elt.result %> <label class="con <%= choice and choice.value == -1 ? "selected" : "" %>" title="-1" for="choice_<%= elt.id %>_con"> <%= image_tag 'vote_minus' %> <%= radio_button_tag "choice[value]", "-1", (choice and choice.value == -1), :id => "choice_#{elt.id}_con", :onclick => "this.form.commit.click()" %> </label> <%= link_to_remote("%+d" % result, { :update => 'result_'+elt.id, :position => :top, :url => { :action => 'choices', :id => elt } }, { :class => 'result', :id => "result_#{ elt.id}", :href => url_for(:controller => 'elt', :action => 'choices', :id => elt) }) %> <script>setKnob($('elt_<%= elt.id %>'), <%= result %>);</script> <label class="pro <%= choice and choice.value == 1 ? "selected" : "" %>" title="+1" for="choice_<%= elt.id %>_pro"> <%= image_tag 'vote_plus' %> <%= radio_button_tag "choice[value]", "+1", (choice and choice.value == +1), :id => "choice_#{elt.id}_pro", :onclick => "this.form.commit.click()" %> </label> <%= submit_tag 'Vote!' %> <span class="eltQuickAdd" id="eltQuickAdd_<%= elt.id %>" title="<%= elt.created_on %>"> <%= link_to_remote(image_tag('write'), { :update => 'eltNew_'+elt.id.to_s, :url => { :controller => 'elt', :action => 'new', :id => elt }, :loaded => visual_effect(:BlindDown, 'eltNew_'+elt.id.to_s)+ visual_effect(:BlindDown, 'eltSubsClose_'+elt.id.to_s) }, { :href => url_for(:controller => 'elt', :action => 'new', :id => @elt)}) %> </span>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.10 | app/views/elt/_choice.rhtml |
parlement-0.9 | app/views/elt/_choice.rhtml |