]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/traces/view.html.erb
fix and improve ability coverage to account for tokens
[rails.git] / app / views / traces / view.html.erb
index 9566e6be8f9d4c351469bb5580848cff47ffc84d..648160c2f64ed3ad872f01d39624dee16e054082 100644 (file)
 
 <% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?)%>
   <div class="buttons">
-    <%= if_user(@trace.user) do %>
-      <%= button_to t('.edit_track'), trace_edit_path(@trace) %>
+    <% if current_user == @trace.user %>
+      <div>
+        <%= button_to t('.edit_track'), trace_edit_path(@trace) %>
+      </div>
     <% end %>
     <%= button_to t('.delete_track'), { :controller => 'traces', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('.confirm_delete') } %>
   </div>