]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/feature.html.erb
Merge pull request #3676 from harry-wood/notes-disappear-time
[rails.git] / app / views / browse / feature.html.erb
index c5c26330e46dbac17cb071ea6c96a9f218cd0f22..86b9020a209e7b7823bb92361c7d63f666e8d644 100644 (file)
@@ -5,7 +5,9 @@
 <%= render :partial => @type, :object => @feature %>
 
 <div class='secondary-actions'>
-  <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
-  &middot;
+  <% 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>