<% if @type.in? [:public, :private] %>
<%= t(@type == :public ? "protocols.index.public_description" : "protocols.index.private_description") %>
<%= button_to protocols_path(type: @type), disabled: !can_create_protocols_in_repository?(@current_team), class: 'btn btn-primary' do %>
<%= t("protocols.index.create_new") %>
<% end %>
<% 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 %>