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

14 lines
536 B
Text

<%= render partial: "global_activities/references/experiment.html.erb",
locals: { subject: subject&.experiment } %>
<div class="col-xs-2">
<%= image_tag 'icon_small/task.svg' %>
<% if subject %>
<%= link_to my_module_path(subject), title: subject.name do %>
<%= subject.name.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
<% end %>
<% else %>
<span title="<%= breadcrumbs[:my_module] %>">
<%= breadcrumbs[:my_module].truncate(Constants::NAME_TRUNCATION_LENGTH) %>
</span>
<% end %>
</div>