X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/70d6880e10881dfd4b68f51cf16609a9f8aaff24..a8f49f5747abfb51c44bf16ca372b20000f9558d:/app/views/browse/feature.html.erb
diff --git a/app/views/browse/feature.html.erb b/app/views/browse/feature.html.erb
index c3fadbe31..86b9020a2 100644
--- a/app/views/browse/feature.html.erb
+++ b/app/views/browse/feature.html.erb
@@ -1,14 +1,13 @@
-<% set_title(t("browse.#{@type}.title", :name => printable_name(@feature))) %>
+<% set_title(t("browse.#{@type}.title_html", :name => printable_name(@feature))) %>
-
-
- <%= raw t("browse.#{@type}.title", :name => printable_name(@feature)) %>
-
+<%= render "sidebar_header", :title => t("browse.#{@type}.title_html", :name => printable_name(@feature)) %>
<%= render :partial => @type, :object => @feature %>
- <%= link_to(t('browse.download_xml'), :controller => @type.pluralize, :action => "read") %>
- ·
- <%= link_to(t('browse.view_history'), :action => "#{@type}_history") %>
+ <% if @feature.visible? %>
+ <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
+ ·
+ <% end %>
+ <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>