mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
16 lines
647 B
Text
16 lines
647 B
Text
<% 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 %>
|
|
<%= protocol.nr_of_versions %>
|
|
<% end %>
|
|
<% if parent.draft.present? %>
|
|
/
|
|
<%= link_to protocol_path(parent.draft) do %>
|
|
<%= t("protocols.index.table.draft") %>
|
|
<% end %>
|
|
<% end %>
|
|
<% elsif protocol.in_repository_draft? %>
|
|
<%= link_to protocol_path(protocol) do %>
|
|
<%= t("protocols.index.table.draft") %>
|
|
<% end %>
|
|
<% end %>
|