Actions

<%= render_download_link %> <% if Sufia.config.analytics %>  |  <%= link_to "Analytics", sufia.stats_generic_file_path(@generic_file), id: 'stats' %> <% end %> <% if can? :edit, @generic_file %>  |  <% if @generic_file.processing? %> <%= t('sufia.upload.processing') %> <% else %> <%= link_to "Edit", sufia.edit_generic_file_path(@generic_file) %> <% end %> <% end %> <% if can?(:create, FeaturedWork) && @generic_file.public? %> <% if FeaturedWork.can_create_another? && !@generic_file.featured?%>  |  <%= link_to "Feature", sufia.featured_work_path(@generic_file, format: :json), data: {behavior: 'feature'} %> <% elsif @generic_file.featured? %>  |  <%= link_to "Unfeature", sufia.featured_work_path(@generic_file, format: :json), data: {behavior: 'unfeature-page'} %> <% end %> <% end %>

Export to: <%= link_to 'EndNote', sufia.generic_file_path(@generic_file, format: 'endnote') %>  |  <%= link_to 'Zotero', sufia.static_path('zotero'), {id: 'zoteroLink', name: 'zotero', class: 'lightboxLink'} %>  |  <%= link_to 'Mendeley', sufia.static_path('mendeley'), {id: 'mendeleyLink', name: 'mendeley', class: 'lightboxLink'} %>