X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9df991e343d55776c0e645e373110f8039593d04..060d6086ca8b1d5791c6116484c1267659bee812:/app/controllers/changeset_controller.rb?ds=inline diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 3af1f3ab9..d7f3d39c8 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -265,7 +265,8 @@ class ChangesetController < ApplicationController else conditions = cond_merge conditions, ['false'] end - elsif params[:format] == 'rhtml' + elsif request.format == :html + @title = t 'user.no_such_user.title' @not_found_user = params[:display_name] render :template => 'user/no_such_user', :status => :not_found end @@ -283,6 +284,8 @@ class ChangesetController < ApplicationController bbox_link = "#{bbox.to_s}" end + @title = t 'changeset.list.title' + if user and bbox @description = t 'changeset.list.description_user_bbox', :user => user.display_name, :bbox => bbox_link elsif user