Skip to content

Commit

Permalink
Move create orcid link to options file
Browse files Browse the repository at this point in the history
  • Loading branch information
13miciunasl committed Jan 17, 2017
1 parent f33f7e4 commit 7abdbfb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 0 additions & 6 deletions app/views/orcid/profile_connections/_create_profile.html.erb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% default_search_text = '' unless defined?(default_search_text) %>
<div class="options-to-connect-orcid-profile">
<p>
<%= render partial: 'orcid/profile_connections/create_profile' %>
<%= link_to 'Create an ORCID', on_demand_url(current_user) %>
</p>
<p>
<%= link_to t('orcid/profile_connection.look_up_your_existing_orcid', scope: 'helpers.label'), orcid.new_profile_connection_path(profile_connection:{text: default_search_text}) %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<% defined?(status_processor) || status_processor = Orcid::ProfileStatus.method(:for) %>
<div class='orcid-connector'>
<h3><i class="icon-user"></i> <%= link_to t('orcid.verbose_name'), Orcid.provider.host_url %></h3>
<h3>
<%= link_to 'http://orcid.org' do %>
<%= image_tag 'http://orcid.org/sites/default/files/images/orcid_16x16.png', alt: 'ORCID logo',width: '16', height: '16' %>
<% end %>
<%= link_to t('orcid.verbose_name'), Orcid.provider.host_url %>
</h3>
<% status_processor.call(current_user) do |on|%>
<%= link_to 'What is ORCID?', orcid_about_path %>
<% on.profile_request_in_error do |pending_request| %>
<%= render partial: 'orcid/profile_connections/profile_request_in_error', object: pending_request %>
<% end %>
Expand Down

0 comments on commit 7abdbfb

Please sign in to comment.