2021-08-12 18:18:12 +08:00
|
|
|
<% case (subject&.result || subject&.step) %>
|
|
|
|
<% when Result %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "global_activities/references/result",
|
2021-08-12 18:18:12 +08:00
|
|
|
locals: { team: team, subject: subject.result, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
|
|
|
<% when Step %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "global_activities/references/protocol",
|
2021-08-12 18:18:12 +08:00
|
|
|
locals: { team: team, subject: subject.step.protocol, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
|
|
|
<% else %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "global_activities/references/my_module",
|
2021-08-12 18:18:12 +08:00
|
|
|
locals: { team: team, subject: nil, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
|
|
|
<div class="ga-breadcrumb">
|
|
|
|
<span class="fa fa-paperclip"> </span>
|
|
|
|
<% name = breadcrumbs['result'] || breadcrumbs['step'] %>
|
|
|
|
<span title="<%= name %>">
|
|
|
|
<%= name.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<% end %>
|