X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/2ba40f97b78f529984ff26c7c7d61c91d213e7b0..ac0692b4b5cebdc97c889d0cd6126a1f1e3d241d:/app/views/election/_candidate_line_edit.rhtml?ds=inline diff --git a/app/views/election/_candidate_line_edit.rhtml b/app/views/election/_candidate_line_edit.rhtml index ea20a4f..61a9f63 100644 --- a/app/views/election/_candidate_line_edit.rhtml +++ b/app/views/election/_candidate_line_edit.rhtml @@ -1,6 +1,6 @@ <% -%>
-

<%= @current_candidate.name %> +

<%=h @current_candidate.name %> (<%= link_to_remote "Delete", :complete => "Element.remove('cand#{@current_candidate.id}')", :url => { :action => :delete_candidate, @@ -12,13 +12,18 @@ <% if @current_candidate.picture? %> + align="top" width="80px" /> <% end %> + <% if @current_candidate.description.length > 0 %> Description:
<%= h(@current_candidate.description) %> - + + <% else %> + + <% end %> +