% linked_children = protocol.linked_children %>
<% published_versions = protocol.published_versions_with_original.order(version_number: :desc)%>
<% if protocol.nr_of_linked_children > 0 %>
<%= label_tag "version-selector".to_sym, t("protocols.index.linked_children.show_version") %>
<%= select_tag "version",
options_for_select(
['All'].concat(
published_versions.map { |p|
[
p.version_number
]
})),
{
id: 'version-selector'
} %>
<% else %>
<%= t("protocols.index.linked_children.no_linked_children") %>
<% end %>