scinote-web/app/views/global_activities/references/_experiment.html.erb

15 lines
573 B
Text
Raw Normal View History

<%= render partial: "global_activities/references/project.html.erb",
locals: { subject: subject&.project, breadcrumbs: breadcrumbs } %>
2019-03-25 16:39:17 +08:00
<div class="ga-breadcrumb">
<%= image_tag 'icon_small/experiment.svg' %>
<% if subject %>
<%= link_to experiment_path(subject), title: subject.name do %>
<%= subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
<% end %>
<% else %>
<span title="<%= breadcrumbs[:experiment] %>">
2019-03-19 21:12:39 +08:00
<%= breadcrumbs[:experiment]&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
</span>
<% end %>
</div>