X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/538c52ea43285fc1ae40e3c3ff5ee78befa1c142..da6c29f53b3598a6d2d9959df277b0340bc54cee:/app/views/common/_sortable_vote.rhtml diff --git a/app/views/common/_sortable_vote.rhtml b/app/views/common/_sortable_vote.rhtml new file mode 100644 index 0000000..6876966 --- /dev/null +++ b/app/views/common/_sortable_vote.rhtml @@ -0,0 +1,15 @@ +
+
    + <% for ranking in @voter.vote.rankings %> +
  1. + <%=h ranking.candidate.name.capitalize %>
  2. + <% end %> +
+
+ +
+ +<%= sortable_element 'rankings-list', + :url => { :action => "sort_candidates", :id => @voter.vote.id }, + :complete => visual_effect(:highlight, 'rankings-list') %> +