|
23 | 23 | "#", id: "change-current-provider-banner-link", |
24 | 24 | data: { "provider": @provider_id, action_link: "change-provider-tool-#{@record_action}" }) %> |
25 | 25 | </p> |
26 | | - <%# TODO: this method does not exist yet. It should be created and used when %> |
27 | | - <%# additional actions are added to published Tool records %> |
28 | | - <%#= render_change_provider_tool_action_link(@record_action, @concept_id, @revision_id) %> |
| 26 | + <%= render_change_provider_tool_action_link(@record_action, @concept_id, @revision_id) %> |
29 | 27 | </div> |
30 | 28 | <% end %> |
31 | 29 |
|
|
94 | 92 | <% end %> |
95 | 93 | <% end %> |
96 | 94 |
|
97 | | - <%# TODO: All links commented out and disabled links added for MMT-2238 %> |
98 | | - <%# links should be re-enabled with the appropriate ticket %> |
99 | | - <%= link_to 'Clone Tool Record', '#', class: 'eui-btn--link bar-after disabled' %> |
100 | | - <%# if current_provider?(@provider_id) %> |
101 | | - <%#= link_to 'Clone Tool Record', clone_tool_path(revision_id: @revision_id), class: 'eui-btn--link bar-after' %> |
102 | | - <%# elsif available_provider?(@provider_id) %> |
103 | | - <%#= link_to 'Clone Tool Record', '#not-current-provider-modal', class: 'display-modal not-current-provider eui-btn--link bar-after', data: { 'provider': @provider_id, record_action: 'clone-tool' } %> |
104 | | - <%# end %> |
| 95 | + <% if current_provider?(@provider_id) %> |
| 96 | + <%= link_to 'Clone Tool Record', clone_tool_path(revision_id: @revision_id), class: 'eui-btn--link bar-after' %> |
| 97 | + <% elsif available_provider?(@provider_id) %> |
| 98 | + <%= link_to 'Clone Tool Record', '#not-current-provider-modal', class: 'display-modal not-current-provider eui-btn--link bar-after', data: { 'provider': @provider_id, record_action: 'clone-tool' } %> |
| 99 | + <% end %> |
105 | 100 |
|
106 | 101 | <%= link_to 'Download JSON', '#', class: 'eui-btn--link disabled' %> |
107 | 102 | <%#= link_to 'Download JSON', download_json_tool_path(@concept_id, revision_id: @revision_id), class: 'eui-btn--link', target: '_blank' %> |
|
0 commit comments