--- /dev/null
+<% set_title(t("browse.timeout.title")) %>
+
+<%= render "sidebar_header", :title => t("browse.timeout.title") %>
+
+<p><%= t ".sorry", :id => params[:id] %></p>
--- /dev/null
+<% set_title(t("browse.timeout.title")) %>
+
+<%= render "sidebar_header", :title => t("browse.timeout.title") %>
+
+<p><%= t ".sorry", :id => params[:id] %></p>
--- /dev/null
+<% set_title(t("browse.timeout.title")) %>
+
+<%= render "sidebar_header", :title => t("browse.timeout.title") %>
+
+<p><%= t ".sorry", :id => params[:id] %></p>
--- /dev/null
+<% set_title(t("browse.timeout.title")) %>
+
+<%= render "sidebar_header", :title => t("browse.timeout.title") %>
+
+<p><%= t ".sorry", :id => params[:id] %></p>
--- /dev/null
+<% set_title(t("browse.timeout.title")) %>
+
+<%= render "sidebar_header", :title => t("browse.timeout.title") %>
+
+<p><%= t ".sorry", :id => params[:id] %></p>
--- /dev/null
+<% set_title(t("browse.timeout.title")) %>
+
+<%= render "sidebar_header", :title => t("browse.timeout.title") %>
+
+<p><%= t ".sorry", :id => params[:id] %></p>
introduction: "Click on the map to find nearby features."
nearby: "Nearby features"
enclosing: "Enclosing features"
+ nodes:
+ timeout:
+ sorry: "Sorry, the data for the node with the id %{id}, took too long to retrieve."
old_nodes:
not_found:
sorry: "Sorry, node #%{id} version %{version} could not be found."
+ timeout:
+ sorry: "Sorry, the history of the node with the id %{id}, took too long to retrieve."
+ ways:
+ timeout:
+ sorry: "Sorry, the data for the way with the id %{id}, took too long to retrieve."
old_ways:
not_found:
sorry: "Sorry, way #%{id} version %{version} could not be found."
+ timeout:
+ sorry: "Sorry, the history of the way with the id %{id}, took too long to retrieve."
+ relations:
+ timeout:
+ sorry: "Sorry, the data for the relation with the id %{id}, took too long to retrieve."
old_relations:
not_found:
sorry: "Sorry, relation #%{id} version %{version} could not be found."
+ timeout:
+ sorry: "Sorry, the history of the relation with the id %{id}, took too long to retrieve."
changeset_comments:
feeds:
comment:
assert_select ".secondary-actions a", :text => "View History", :count => 1
assert_select ".secondary-actions a", :text => "View Unredacted History", :count => 1
end
+
+ def test_show_timeout
+ node = create(:node)
+ with_settings(:web_timeout => -1) do
+ get node_path(node)
+ end
+ assert_response :error
+ assert_template :layout => "map"
+ assert_dom "h2", "Timeout Error"
+ assert_dom "p", /#{Regexp.quote("the node with the id #{node.id}")}/
+ end
end
assert_select "#sidebar_content", /node #0 version 0 could not be found/
end
+ def test_show_timeout
+ node = create(:node, :with_history)
+ with_settings(:web_timeout => -1) do
+ get old_node_path(node, 1)
+ end
+ assert_response :error
+ assert_template :layout => "map"
+ assert_dom "h2", "Timeout Error"
+ assert_dom "p", /#{Regexp.quote("the node with the id #{node.id}")}/
+ end
+
private
def create_redacted_node
assert_select "#sidebar_content", /relation #0 version 0 could not be found/
end
+ def test_show_timeout
+ relation = create(:relation, :with_history)
+ with_settings(:web_timeout => -1) do
+ get old_relation_path(relation, 1)
+ end
+ assert_response :error
+ assert_template :layout => "map"
+ assert_dom "h2", "Timeout Error"
+ assert_dom "p", /#{Regexp.quote("the relation with the id #{relation.id}")}/
+ end
+
private
def create_redacted_relation
assert_select "#sidebar_content", /way #0 version 0 could not be found/
end
+ def test_show_timeout
+ way = create(:way, :with_history)
+ with_settings(:web_timeout => -1) do
+ get old_way_path(way, 1)
+ end
+ assert_response :error
+ assert_template :layout => "map"
+ assert_dom "h2", "Timeout Error"
+ assert_dom "p", /#{Regexp.quote("the way with the id #{way.id}")}/
+ end
+
private
def create_redacted_way
sidebar_browse_check :relation_path, member.id, "browse/feature"
assert_select "a[href='#{relation_path relation}']", :count => 1
end
+
+ def test_show_timeout
+ relation = create(:relation)
+ with_settings(:web_timeout => -1) do
+ get relation_path(relation)
+ end
+ assert_response :error
+ assert_template :layout => "map"
+ assert_dom "h2", "Timeout Error"
+ assert_dom "p", /#{Regexp.quote("the relation with the id #{relation.id}")}/
+ end
end
sidebar_browse_check :way_path, member.id, "browse/feature"
assert_select "a[href='#{relation_path relation}']", :count => 1
end
+
+ def test_show_timeout
+ way = create(:way)
+ with_settings(:web_timeout => -1) do
+ get way_path(way)
+ end
+ assert_response :error
+ assert_template :layout => "map"
+ assert_dom "h2", "Timeout Error"
+ assert_dom "p", /#{Regexp.quote("the way with the id #{way.id}")}/
+ end
end