2023-03-01 22:04:53 +08:00
|
|
|
<% if protocol.in_repository_published_original? || protocol.in_repository_published_version? %>
|
|
|
|
<% parent = protocol.parent || protocol %>
|
|
|
|
<%= link_to versions_modal_protocol_path(parent), class: 'protocol-versions-link', remote: true do %>
|
2022-12-09 19:44:41 +08:00
|
|
|
<%= protocol.nr_of_versions %>
|
2023-03-01 22:04:53 +08:00
|
|
|
<% end %>
|
2023-03-02 23:10:28 +08:00
|
|
|
<% if parent.draft.present? %>
|
2023-03-01 22:04:53 +08:00
|
|
|
/
|
|
|
|
<%= link_to protocol_path(parent.draft) do %>
|
|
|
|
<%= t("protocols.index.table.draft") %>
|
2022-12-09 19:44:41 +08:00
|
|
|
<% end %>
|
2023-03-01 22:04:53 +08:00
|
|
|
<% end %>
|
|
|
|
<% elsif protocol.in_repository_draft? %>
|
|
|
|
<%= link_to protocol_path(protocol) do %>
|
2022-12-09 19:44:41 +08:00
|
|
|
<%= t("protocols.index.table.draft") %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|