- if params[:bbox]
- bbox = BoundingBox.from_bbox_params(params)
- elsif params[:minlon] and params[:minlat] and params[:maxlon] and params[:maxlat]
- bbox = BoundingBox.from_lon_lat_params(params)
- end
-
- if bbox
- changesets = conditions_bbox(changesets, bbox)
- end
-
- if user
- user_link = render_to_string :partial => "user", :object => user
- end
-
- if params[:friends] and @user
- @title = t 'changeset.list.title_friend'
- @heading = t 'changeset.list.title_friend'
- elsif params[:nearby] and @user
- @title = t 'changeset.list.title_nearby'
- @heading = t 'changeset.list.title_nearby'
- elsif user
- @title = t 'changeset.list.title_user', :user => user.display_name
- @heading = t('changeset.list.title_user', :user => user_link).html_safe
- else
- @title = t 'changeset.list.title'
- @heading = t 'changeset.list.title'