scinote-web/app/views/shared/smart_annotation/_experiment_items.html.erb
2020-09-09 14:17:19 +02:00

21 lines
870 B
Text

<div class="atwho-scroll-container">
<% grouped_by_prj(experiments).each do |experiment_group| %>
<div class="item-group">
<div class="atwho-breadcrumbs">
<span class="atwho-breadcrumb" title="<%= experiment_group[:project_name] %>"><%= experiment_group[:project_name] %></span>
</div>
<div class="items">
<% experiment_group[:experiments].each do |experiment| %>
<li class="item" data-name="<%= experiment.name %>" data-id="<%= experiment.id.base62_encode %>" data-type="exp">
<span class='sa-type'>Exp</span>
<span class="item-text"><%= experiment.name %></span>
</li>
<% end %>
</div>
</div>
<% end %>
<% if experiments.empty? %>
<%= render partial: 'shared/smart_annotation/no_results.html.erb' %>
<% end %>
</div>
<%= render partial: 'shared/smart_annotation/footer.html.erb' %>