<%= render "sidebar_header", :title => t("browse.node.title_html", :name => printable_name(@feature)) %>
<%= render :partial => "browse/node", :object => @feature %>
+
+<div class='secondary-actions'>
+ <%= link_to t("browse.download_xml"), node_version_path(*@feature.id) %>
+</div>
<%= render "sidebar_header", :title => t("browse.relation.title_html", :name => printable_name(@feature)) %>
<%= render :partial => "browse/relation", :object => @feature %>
+
+<div class='secondary-actions'>
+ <%= link_to t("browse.download_xml"), relation_version_path(*@feature.id) %>
+</div>
<%= render "sidebar_header", :title => t("browse.way.title_html", :name => printable_name(@feature)) %>
<%= render :partial => "browse/way", :object => @feature %>
+
+<div class='secondary-actions'>
+ <%= link_to t("browse.download_xml"), way_version_path(*@feature.id) %>
+</div>
assert_select "h4", /^Version/ do
assert_select "a[href='#{old_node_path node, 1}']", :count => 0
end
+ assert_select "a[href='#{node_version_path node, 1}']", :count => 1
end
def test_not_found
assert_select "h4", /^Version/ do
assert_select "a[href='#{old_relation_path relation, 1}']", :count => 0
end
+ assert_select "a[href='#{relation_version_path relation, 1}']", :count => 1
end
def test_visible_with_members
assert_select "h4", /^Version/ do
assert_select "a[href='#{old_way_path way, 1}']", :count => 0
end
+ assert_select "a[href='#{way_version_path way, 1}']", :count => 1
end
def test_visible_with_shared_nodes