]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/feature.html.erb
Don't show 'Download XML' link for deleted elements
[rails.git] / app / views / browse / feature.html.erb
index 5674f21b08af018a16be415be697abb45fee47d6..86b9020a209e7b7823bb92361c7d63f666e8d644 100644 (file)
@@ -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))) %>
 
-<h2>
-  <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-  <%= raw t("browse.#{@type}.title", :name => printable_name(@feature)) %>
-</h2>
+<%= render "sidebar_header", :title => t("browse.#{@type}.title_html", :name => printable_name(@feature)) %>
 
 <%= render :partial => @type, :object => @feature %>
 
 <div class='secondary-actions'>
-  <%= link_to(t('browse.download_xml'), :controller => @type.pluralize, :action => :show) %>
-  &middot;
-  <%= link_to(t('browse.view_history'), :action => "#{@type}_history") %>
+  <% if @feature.visible? %>
+    <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
+    &middot;
+  <% end %>
+  <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>
 </div>