<% if can_read_experiment?(@my_module.experiment) %>
<%= link_to raw(" " + t('my_modules.protocols.buttons.export') + ""), export_protocols_path(protocol_ids: @protocol.id, my_module_id: @my_module.id), class: "btn btn-default", data: { turbolinks: false } %>
<% else %>
<%= t("my_modules.protocols.buttons.export") %>
<% end %>
<% if can_read_protocol_in_module?(@protocol) && can_create_protocols_in_repository?(@protocol.team) %>
<%= link_to copy_to_repository_modal_protocol_path(@protocol, format: :json), id: "protocol-copy-to-repository", class: "btn btn-default", remote: true, data: { action: "copy-to-repository" } do %>
<%= t("my_modules.protocols.buttons.copy_to_repository") %>
<% end %>
<% else %>
<%= t("my_modules.protocols.buttons.copy_to_repository") %>
<% end %>