<% content_for :head do %> <% end %> <% provide(:head_title, t("protocols.index.head_title")) %> <% if current_team %>
<% if @type.in? [:public, :private] %>
<%= t(@type == :public ? "protocols.index.public_description" : "protocols.index.private_description") %>
<% if @type == :public %> <% elsif @type == :private %> <% end %>
<% if can_create_protocols_in_repository?(@current_team) %> <% end %>
<% elsif @type == :archive %>
<%= t("protocols.index.archive.description") %>
<% end %> <%# Main tab content %> <% if @type == :external_protocols %> <%= render partial: "protocols/index/external_protocols_tab.html.erb" %> <% else %> <%= render partial: "protocols/index/protocols_datatable.html.erb" %> <% end %>
<% end %>
<%= render partial: "protocols/import_export/import_json_protocol_modal.html.erb" %> <%= render partial: "protocols/index/create_new_modal.html.erb" %> <%= render partial: "protocols/index/make_private_results_modal.html.erb" %> <%= render partial: "protocols/index/publish_results_modal.html.erb" %> <%= render partial: "protocols/index/confirm_archive_modal.html.erb" %> <%= render partial: "protocols/index/archive_results_modal.html.erb" %> <%= render partial: "protocols/index/restore_results_modal.html.erb" %> <%= render partial: "protocols/index/import_results_modal.html.erb" %> <%= render partial: "protocols/index/linked_children_modal.html.erb" %> <%= render partial: "protocols/index/protocol_preview_modal.html.erb" %> <%= render partial: "protocols/import_export/import_elements.html.erb" %> <%= javascript_include_tag "handsontable.full.min" %> <%= render partial: "shared/formulas_libraries.html.erb" %> <%= stylesheet_link_tag 'datatables' %> <%= javascript_include_tag "assets/wopi/create_wopi_file" %> <%= javascript_include_tag "protocols/index" %> <%= javascript_include_tag "protocols/steps" %>