X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d781f42016767132eea7c7463549640d943c2910..71606b34f0fa50ab340c85034f69e7357479b93c:/app/controllers/trace_controller.rb?ds=sidebyside diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 1fb0b5c65..c5552f39d 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -7,6 +7,8 @@ class TraceController < ApplicationController # target_user - if set, specifies the user to fetch traces for. if not set will fetch all traces # paging_action - the action that will be linked back to from view def list (target_user = nil, paging_action = 'list') + @title = 'public GPS traces' + @title += " tagged with #{params[:tag]}" if params[:tag] @traces_per_page = 20 page_index = params[:page] ? params[:page].to_i - 1 : 0 # nice 1-based page -> 0-based page index @@ -15,6 +17,7 @@ class TraceController < ApplicationController if target_user.nil? and display_name and display_name != '' @paging_action = 'view' @display_name = display_name + @title += " from #{@display_name}" target_user = User.find(:first, :conditions => [ "display_name = ?", display_name]) end