X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/2ba40f97b78f529984ff26c7c7d61c91d213e7b0..103b2b07ab5aa50e160b289a0a76d95356353edc:/app/views/election/_candidate_line_edit.rhtml?ds=sidebyside diff --git a/app/views/election/_candidate_line_edit.rhtml b/app/views/election/_candidate_line_edit.rhtml index ea20a4f..0fd5b67 100644 --- a/app/views/election/_candidate_line_edit.rhtml +++ b/app/views/election/_candidate_line_edit.rhtml @@ -1,24 +1,28 @@ -<% -%> -
-

<%= @current_candidate.name %> - (<%= link_to_remote "Delete", +

+
<%=h @current_candidate.name %>
+
+ <%= link_to_remote "Delete", :complete => "Element.remove('cand#{@current_candidate.id}')", :url => { :action => :delete_candidate, - :id => @current_candidate.id } %> | - <%= link_to "Edit", :action => 'edit_candidate', :id => - @current_candidate.id %>)
-
- -
- <% if @current_candidate.picture? %> - - <% end %> - - Description:
- <%= h(@current_candidate.description) %> -
-
+ :id => @current_candidate.id } %> +
+
+ +
+
+ <% if @current_candidate.picture? %> + + <% end %> +
+
+ <% if @current_candidate.description.length > 0 %> + <%= h(@current_candidate.description) %> + <% else %> + + <% end %> +
+
+