]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/traces_controller.rb
Improved error reporting when trace upload fails
[rails.git] / app / controllers / traces_controller.rb
index 5bee44886716448fbcd715dc893c981341b5984b..d723bac5b73b634f62d32e99ae6337f8e41c3916 100644 (file)
@@ -65,6 +65,8 @@ class TracesController < ApplicationController
 
     # final helper vars for view
     @target_user = target_user
+
+    render :partial => "page" if turbo_frame_request_id == "pagination"
   end
 
   def show
@@ -141,7 +143,7 @@ class TracesController < ApplicationController
       flash[:notice] = t ".updated"
       redirect_to :action => "show", :display_name => current_user.display_name
     else
-      @title = t ".title", :name => @trace.name
+      @title = t "traces.edit.title", :name => @trace.name
       render :action => "edit"
     end
   rescue ActiveRecord::RecordNotFound