scinote-web/app/views/global_activities/references/_asset.html.erb
2023-06-21 14:38:32 +02:00

18 lines
902 B
Text

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