before_filter :authorize_web
before_filter :set_locale
before_filter { |c| c.check_database_readable(true) }
- around_filter :web_timeout, :except => [:start]
-
- def start
- render :layout => false
- end
+ around_filter :web_timeout
def relation
@type = "relation"
caches_page :embed
- def start
- end
-
#When the user clicks 'Export' we redirect to a URL which generates the export download
def finish
bbox = BoundingBox.from_lon_lat_params(params)
+++ /dev/null
-<h2><%= t 'browse.start_rjs.data_frame_title' %></h2>
-<div id="browse_controls" class='inner12'>
- <a id="browse_filter_toggle" class="button" href="#"><%= t'browse.start_rjs.manually_select' %></a>
- <a id="browse_hide_areas_box" class="button" href="#"><%= t'browse.start_rjs.hide_areas' %></a>
-</div>
-<div id="browse_status" class='inner12'></div>
-<div id="browse_content"></div>
end
# Data browsing
- match '/browse/start' => 'browse#start', :via => :get
match '/browse/way/:id' => 'browse#way', :via => :get, :id => /\d+/, :as => :way
match '/browse/way/:id/history' => 'browse#way_history', :via => :get, :id => /\d+/
match '/browse/node/:id' => 'browse#node', :via => :get, :id => /\d+/, :as => :node
match '/geocoder/search_geonames_reverse' => 'geocoder#search_geonames_reverse', :via => :get
# export
- match '/export/start' => 'export#start', :via => :get
match '/export/finish' => 'export#finish', :via => :post
match '/export/embed' => 'export#embed', :via => :get
##
# test all routes which lead to this controller
def test_routes
- assert_routing(
- { :path => "/browse/start", :method => :get },
- { :controller => "browse", :action => "start" }
- )
assert_routing(
{ :path => "/browse/node/1", :method => :get },
{ :controller => "browse", :action => "node", :id => "1" }
##
# test all routes which lead to this controller
def test_routes
- assert_routing(
- { :path => "/export/start", :method => :get },
- { :controller => "export", :action => "start" }
- )
assert_routing(
{ :path => "/export/finish", :method => :post },
{ :controller => "export", :action => "finish" }
)
end
- ##
- # test the start action
- def test_start
- xhr :get, :start
- assert_response :success
- assert_template "export/start"
- end
-
###
# test the finish action for raw OSM data
def test_finish_osm