From 84966b38527c811c001f734a846a1433ce061819 Mon Sep 17 00:00:00 2001 From: Sven Bohm Date: Tue, 25 Jun 2024 13:05:54 -0400 Subject: [PATCH] roll back footer changes but treat open access like signed in --- app/views/citations/_citation.html.erb | 69 +++++++++++++------------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/app/views/citations/_citation.html.erb b/app/views/citations/_citation.html.erb index f771b0b6..bbdde0d9 100644 --- a/app/views/citations/_citation.html.erb +++ b/app/views/citations/_citation.html.erb @@ -16,54 +16,53 @@ <% cache(citation, action: 'index') do %>

<%=citation.formatted(long: true) %> - <% if citation.doi.present? %> - DOI: <%= citation.doi %> + <% if citation.doi.present? %> + DOI: <%= link_to citation.doi, normalize_doi(citation.doi) %> <% end %>

<% end %> - <% if signed_in? and current_user.role == 'admin' or Rails.env == 'development' -%> -

<%= link_to 'show', citation_path(citation) %>

- <% end %>