- <%= 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") %>