X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c933ff40da110253bc4c474d9c79c3a4ed98721d..c8499fcec8f54c148e3b387e6d774a80a20121e3:/app/views/election/_candidate_line.rhtml?ds=sidebyside diff --git a/app/views/election/_candidate_line.rhtml b/app/views/election/_candidate_line.rhtml old mode 100644 new mode 100755 index 7f68e6f..5145b88 --- a/app/views/election/_candidate_line.rhtml +++ b/app/views/election/_candidate_line.rhtml @@ -1,11 +1,19 @@ -
-
  • - <%= @candidate.name %> - <% if @edit %> - <%= link_to_remote "Delete", - :complete => "Element.remove('cand#{@candidate.id}')", - :url => { :action => :delete_candidate, :id => @candidate.id } %> +<% -%> +
    +
  • <%= @current_candidate.name -%> + <% if @show_details %> + (<%= link_to_remote "Hide Details", + :update => "cand#{@current_candidate.id}", + :url => { :action => :lessinfo_candidate, :id => @current_candidate.id } %>) +
    +
    + <%= h(@current_candidate.description) %> +
    + <% else %> + (<%= link_to_remote "Show Details", + :update => "cand#{@current_candidate.id}", + :url => { :action => :moreinfo_candidate, + :id => @current_candidate.id } %>) <% end %> -