From da30078ef4439657c9c6ae3ec17734e5be5ae9e5 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 15 Aug 2016 17:01:24 -0400 Subject: [PATCH] er, we use a static/modded version of best_in_place (#608) --- app/views/maps/_mapinfobox.html.erb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/views/maps/_mapinfobox.html.erb b/app/views/maps/_mapinfobox.html.erb index 0b8caf69..49067d22 100644 --- a/app/views/maps/_mapinfobox.html.erb +++ b/app/views/maps/_mapinfobox.html.erb @@ -8,7 +8,13 @@ <%= @map && @map.permission != 'private' ? " shareable" : "" %>"> <% if @map %> -
<%= best_in_place @map, :name, :as => :textarea, :activator => "#mapInfoName", :class => 'best_in_place_name' %>
+
+ <% if policy(@map).update? %> + <%= @map.name %> + <% else %> + <%= @map.name %> + <% end %> +
@@ -54,8 +60,10 @@
- <% if (authenticated? && policy(@map).update?) || (!authenticated? && @map.desc != "" && @map.desc != nil )%> - <%= best_in_place @map, :desc, :activator => "#mapInfoDesc", :as => :textarea, :placeholder => "Click to add description...", :class => 'best_in_place_desc' %> + <% if policy(@map).update? %> + <%= @map.desc %> + <% else %> + <%= @map.desc %> <% end %>