2019-03-26 00:35:54 +08:00
|
|
|
<% if subject.in_repository? %>
|
|
|
|
<%= render partial: "global_activities/references/team.html.erb",
|
|
|
|
locals: { subject: subject&.team, breadcrumbs: breadcrumbs } %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: "global_activities/references/my_module.html.erb",
|
|
|
|
locals: { subject: subject&.my_module, breadcrumbs: breadcrumbs } %>
|
|
|
|
<% end %>
|
2019-03-25 16:39:17 +08:00
|
|
|
<div class="ga-breadcrumb">
|
2019-02-27 23:02:53 +08:00
|
|
|
<span class="fas fa-edit"></span>
|
|
|
|
<% if subject %>
|
2019-03-19 20:33:32 +08:00
|
|
|
<% if subject.in_repository? %>
|
2019-02-27 23:02:53 +08:00
|
|
|
<%= route_to_other_team protocols_path(team: subject.team),
|
|
|
|
subject.team,
|
2019-03-19 20:33:32 +08:00
|
|
|
subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
|
2019-02-27 23:02:53 +08:00
|
|
|
title: subject.name %>
|
|
|
|
<% else %>
|
2019-03-19 20:33:32 +08:00
|
|
|
<%= link_to subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
|
|
|
|
protocols_my_module_path(subject.my_module), title: subject.name %>
|
2019-02-27 23:02:53 +08:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<span title="<%= breadcrumbs[:protocol] %>">
|
2019-03-19 21:12:39 +08:00
|
|
|
<%= breadcrumbs[:protocol]&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
|
2019-02-27 23:02:53 +08:00
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|