]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Add a title to the changeset lists. Closes #1938.
[rails.git] / app / controllers / changeset_controller.rb
index 3af1f3ab9e03b1fac3e336e67d75928887b839a1..8c20ddb4d59fdd8662f2a62b232eafbf402c1dbf 100644 (file)
@@ -266,6 +266,7 @@ class ChangesetController < ApplicationController
           conditions = cond_merge conditions, ['false']
         end
       elsif params[:format] == 'rhtml'
+        @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