<%= render partial: "global_activities/references/my_module.html.erb", locals: { subject: subject&.my_module, breadcrumbs: breadcrumbs } %>
<% if subject %> <% if subject.in_repository? %> <%= route_to_other_team protocols_path(team: subject.team), subject.team, subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH), title: subject.name %> <% else %> <%= link_to subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH), protocols_my_module_path(subject.my_module), title: subject.name %> <% end %> <% else %> <%= breadcrumbs[:protocol]&.truncate(Constants::NAME_TRUNCATION_LENGTH) %> <% end %>