2019-03-26 00:35:54 +08:00
|
|
|
<% if subject.in_repository? %>
|
|
|
|
<%= render partial: "global_activities/references/team.html.erb",
|
2019-03-28 21:56:34 +08:00
|
|
|
locals: { team: team, subject: subject&.team, breadcrumbs: breadcrumbs } %>
|
2019-03-26 00:35:54 +08:00
|
|
|
<% else %>
|
|
|
|
<%= render partial: "global_activities/references/my_module.html.erb",
|
2019-03-28 21:56:34 +08:00
|
|
|
locals: { team: team, subject: subject&.my_module, breadcrumbs: breadcrumbs } %>
|
2019-03-26 00:35:54 +08:00
|
|
|
<% 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-28 21:56:34 +08:00
|
|
|
<% if subject.in_repository? || subject.my_module.navigable? %>
|
|
|
|
<% path = subject.in_repository? ? protocols_path(team: subject.team) : protocols_my_module_path(subject.my_module) %>
|
|
|
|
<%= route_to_other_team path,
|
|
|
|
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 %>
|
2019-03-28 20:43:50 +08:00
|
|
|
<% else %>
|
|
|
|
<span title="<%= subject.name %>">
|
|
|
|
<%= subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
|
|
|
|
</span>
|
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>
|