X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f7bd08f4a8a6a626a0c1d7ed60f2dcd6a6801e8..a88da1d71af3a095e5496937e04731ed5d5632fe:/app/views/browse/feature.html.erb?ds=sidebyside diff --git a/app/views/browse/feature.html.erb b/app/views/browse/feature.html.erb index 38657f4d1..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, :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") %>