mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
29 lines
1.4 KiB
Text
29 lines
1.4 KiB
Text
<% limit_reached = my_modules.length == Constants::ATWHO_SEARCH_LIMIT + 1 %>
|
|
<div class="atwho-scroll-container">
|
|
<% grouped_by_prj_exp(my_modules.limit(Constants::ATWHO_SEARCH_LIMIT)).each do |task_group| %>
|
|
<div class="item-group">
|
|
<div class="atwho-breadcrumbs">
|
|
<span class="atwho-breadcrumb" title="<%= task_group[:project_name] %>"><%= task_group[:project_name] %></span>
|
|
<span class="slash">/</span>
|
|
<span class="atwho-breadcrumb" title="<%= task_group[:experiment_name] %>"><%= task_group[:experiment_name] %></span>
|
|
</div>
|
|
<div class="items">
|
|
<% task_group[:tasks].each do |task| %>
|
|
<li class="item" data-name="<%= sanitize_input(task.name) %>" data-id="<%= task.id.base62_encode %>" data-type="tsk">
|
|
<span class='sa-type'><%= task.code %></span>
|
|
<span class="dot">·</span>
|
|
<span class="item-text"><%= sanitize_input(task.name) %></span>
|
|
<%= render partial: 'shared/smart_annotation/atwho_control_buttons' %>
|
|
</li>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% if limit_reached %>
|
|
<div class="more-results"><%= t('atwho.more_results') %></div>
|
|
<% end %>
|
|
<% if my_modules.blank? %>
|
|
<%= render partial: 'shared/smart_annotation/no_results', locals: { object_type: 'my_modules' } %>
|
|
<% end %>
|
|
</div>
|
|
<%= render partial: 'shared/smart_annotation/footer' %>
|