X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/4efa3e9bc47cc649205a399fde51ed7e61bef7f8..2ba40f97b78f529984ff26c7c7d61c91d213e7b0:/app/views/election/_candidate_line.rhtml diff --git a/app/views/election/_candidate_line.rhtml b/app/views/election/_candidate_line.rhtml index 7f68e6f..5145b88 100644 --- 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 %> -