<% published_versions = protocol.published_versions_with_original.order(version_number: :desc)%> <% if protocol.all_linked_children.any? %>
<%= 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 %>