]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Add the ability for a recipient to (logically) delete a message from
[rails.git] / app / controllers / changeset_controller.rb
index 3af1f3ab9e03b1fac3e336e67d75928887b839a1..d7f3d39c833aba270e7b13c18db3edc9d9c1452f 100644 (file)
@@ -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 = "<a href='#{url_for(:controller => "site", :action => "index", :minlon => bbox.min_lon, :minlat => bbox.min_lat, :maxlon => bbox.max_lon, :maxlat => bbox.max_lat, :box => "yes")}'>#{bbox.to_s}</a>"
     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