]> git.openstreetmap.org Git - rails.git/commitdiff
Adding tag name to title if available.
authorDan Karran <dan@karran.net>
Sat, 23 Jun 2007 11:30:03 +0000 (11:30 +0000)
committerDan Karran <dan@karran.net>
Sat, 23 Jun 2007 11:30:03 +0000 (11:30 +0000)
app/controllers/trace_controller.rb

index 231181ff3f4acd977871cd57d2dca87d3100c1c2..c5552f39d07f44b2359338852049a3743727102a 100644 (file)
@@ -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