Ticket #1938: add_changeset_titles.patch

File add_changeset_titles.patch, 1.3 KB (added by Dan Karran, 10 years ago)
  • app/controllers/changeset_controller.rb

     
    254254  ##
    255255  # list edits (open changesets) in reverse chronological order
    256256  def list
     257    @title = t'changeset.list.recent_changes'
    257258    conditions = conditions_nonempty
    258259   
    259    
    260260   # @changesets = Changeset.find(:all, :order => "closed_at DESC", :conditions => ['closed_at < ?', DateTime.now], :limit=> 20)
    261261   
    262262   
     
    281281   
    282282    if user
    283283      @display_name = user.display_name
     284      @title = t'changeset.list_user.edits_by_username', :username_link => @display_name
    284285      if not user.data_public? and @user != user
    285286        @edits = nil
    286287        render
     
    294295                                        :per_page => 20)
    295296      end
    296297    else
     298      @title = t 'user.no_such_user.title'
    297299      @not_found_user = params[:display_name]
    298300      render :template => 'user/no_such_user', :status => :not_found
    299301    end
     
    302304  ##
    303305  # list changesets in a bbox
    304306  def list_bbox
     307    @title = t'changeset.list_bbox.history'
    305308    # support 'bbox' param or alternatively 'minlon', 'minlat' etc       
    306309    if params['bbox']
    307310       bbox = params['bbox']