Sha256: 62c54d496f210fd4a49d1c46e680f52f527e4f60064f2cf03da0bfc0c9f7510b
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 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.png' %> <%= 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.png' %> <%= 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.png'), { :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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.11 | app/views/elt/_choice.rhtml |
parlement-0.12 | app/views/elt/_choice.rhtml |
parlement-0.13 | app/views/elt/_choice.rhtml |