From: Dan Karran Date: Sat, 23 Jun 2007 11:30:03 +0000 (+0000) Subject: Adding tag name to title if available. X-Git-Tag: live~8885 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/f0b5776389bff72fd88cc3e628945fd6c0554f1e Adding tag name to title if available. --- diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 231181ff3..c5552f39d 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -8,6 +8,7 @@ class TraceController < ApplicationController # 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