Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def orcid
end

def orcid_as_url
Rails.env.test? ? ENV["ORCID_URL"] + "/" + orcid : "https://orcid.org/" + orcid
ENV["ORCID_URL"] ? ENV["ORCID_URL"] + "/" + orcid : "https://orcid.org/" + orcid
end

def flipper_id
Expand Down
2 changes: 1 addition & 1 deletion app/views/settings/_show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="col-md-9">
<div class="panel-body settings-container">
<h2 class="settings-name col-span-full"><%= @user.name %></h2>
<p class="settings-orcid-link col-span-full"><%= link_to @user.orcid_as_url, @user.orcid %></p>
<%= link_to @user.orcid_as_url, @user.orcid_as_url, class: "settings-orcid-link col-span-full" %>

<h3 class="settings-section-header col-span-full">Link Works to ORCID
<% if @user.orcid_search_and_link_access_token %>
Expand Down