]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/traces/view.html.erb
Split out updating a trace into an update action
[rails.git] / app / views / traces / view.html.erb
index 648160c2f64ed3ad872f01d39624dee16e054082..59c8a0a1f6da5778cb37dc2834aef5fd997b1857 100644 (file)
@@ -57,9 +57,7 @@
 <% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?)%>
   <div class="buttons">
     <% if current_user == @trace.user %>
-      <div>
-        <%= button_to t('.edit_track'), trace_edit_path(@trace) %>
-      </div>
+      <%= link_to t('.edit_track'), edit_trace_path(@trace), :class => "button" %>
     <% end %>
     <%= button_to t('.delete_track'), { :controller => 'traces', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('.confirm_delete') } %>
   </div>