]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Be more consistent with 'my' vs 'your' for objects that belong to
[rails.git] / app / controllers / trace_controller.rb
index 81c7864738cf3d5208a1566f23c7a2a86becd9fd..f97e5ecd2f9f64308a066b88fad2e964f3a20a83 100644 (file)
@@ -33,7 +33,7 @@ class TraceController < ApplicationController
     @title = if target_user.nil?
                t "trace.list.public_traces"
              elsif current_user && current_user == target_user
-               t "trace.list.your_traces"
+               t "trace.list.my_traces"
              else
                t "trace.list.public_traces_from", :user => target_user.display_name
              end
@@ -192,7 +192,7 @@ class TraceController < ApplicationController
       trace.visible = false
       trace.save
       flash[:notice] = t "trace.delete.scheduled_for_deletion"
-      redirect_to :action => :list, :display_name => current_user.display_name
+      redirect_to :action => :list, :display_name => trace.user.display_name
     end
   rescue ActiveRecord::RecordNotFound
     head :not_found