X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d14cf519fd876274900758a903e7e390d38922d5..2a44ff581f4c547a3637ea52567a3398b1d8bfe0:/app/views/traces/view.html.erb?ds=sidebyside diff --git a/app/views/traces/view.html.erb b/app/views/traces/view.html.erb index 9566e6be8..648160c2f 100644 --- a/app/views/traces/view.html.erb +++ b/app/views/traces/view.html.erb @@ -56,8 +56,10 @@ <% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?)%>
- <%= if_user(@trace.user) do %> - <%= button_to t('.edit_track'), trace_edit_path(@trace) %> + <% if current_user == @trace.user %> +
+ <%= button_to t('.edit_track'), trace_edit_path(@trace) %> +
<% end %> <%= button_to t('.delete_track'), { :controller => 'traces', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('.confirm_delete') } %>