X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a1853204faefd8270e3db4a988ef373ea1ab342d:/app/controllers/trace_controller.rb..b446138aefb04799cc1253886335ced16e546517:/app/controllers/traces_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/traces_controller.rb similarity index 98% rename from app/controllers/trace_controller.rb rename to app/controllers/traces_controller.rb index 5eb9a0ff7..86de77706 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/traces_controller.rb @@ -1,4 +1,4 @@ -class TraceController < ApplicationController +class TracesController < ApplicationController layout "site", :except => :georss skip_before_action :verify_authenticity_token, :only => [:api_create, :api_read, :api_update, :api_delete, :api_data] @@ -167,7 +167,7 @@ class TraceController < ApplicationController elsif current_user.nil? || @trace.user != current_user head :forbidden else - @title = t "trace.edit.title", :name => @trace.name + @title = t ".title", :name => @trace.name if request.post? && params[:trace] @trace.description = params[:trace][:description] @@ -384,7 +384,7 @@ class TraceController < ApplicationController end def offline_warning - flash.now[:warning] = t "trace.offline_warning.message" if STATUS == :gpx_offline + flash.now[:warning] = t "traces.offline_warning.message" if STATUS == :gpx_offline end def offline_redirect