mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-25 08:14:17 +08:00
Merge pull request #5202 from aignatov-bio/ai-sci-8195-fix-error-in-protocol-global-search
Fix link in protocol global search [SCI-8195]
This commit is contained in:
commit
f99326507d
1 changed files with 4 additions and 11 deletions
|
@ -13,17 +13,10 @@
|
|||
</span>
|
||||
|
||||
<% end %>
|
||||
<% if protocol.in_module? && can_read_protocol_in_module?(protocol) || protocol.in_repository? && can_read_protocol_in_repository?(protocol) %>
|
||||
<%= link_to text, '#', 'data-action': 'protocol-preview', 'data-url': preview_protocol_path(protocol) %>
|
||||
|
||||
<%= javascript_include_tag "handsontable.full" %>
|
||||
|
||||
<!-- Libraries for formulas -->
|
||||
<%= render partial: "shared/formulas_libraries.html.erb" %>
|
||||
|
||||
<%= stylesheet_link_tag 'datatables' %>
|
||||
<%= javascript_include_tag "protocols/index" %>
|
||||
<%= javascript_include_tag "protocols/steps" %>
|
||||
<% if protocol.in_module? && can_read_protocol_in_module?(protocol) %>
|
||||
<%= link_to text, protocols_my_module_path(protocol.my_module) %>
|
||||
<% elsif protocol.in_repository? && can_read_protocol_in_repository?(protocol) %>
|
||||
<%= link_to text, protocol_path(protocol) %>
|
||||
<% else %>
|
||||
<%= text %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue