mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
18 lines
886 B
Text
18 lines
886 B
Text
<% limit_reached = projects.length == Constants::ATWHO_SEARCH_LIMIT + 1 %>
|
|
<div class="atwho-scroll-container">
|
|
<% projects.limit(Constants::ATWHO_SEARCH_LIMIT).each do |project| %>
|
|
<li class="item" data-name="<%= sanitize_input(project.name) %>" data-id="<%= project.id.base62_encode %>" data-type="prj">
|
|
<span class='sa-type'><%= project.code %></span>
|
|
<span class="dot">·</span>
|
|
<span class="item-text"><%= sanitize_input(project.name) %></span>
|
|
<%= render partial: 'shared/smart_annotation/atwho_control_buttons' %>
|
|
</li>
|
|
<% end %>
|
|
<% if limit_reached %>
|
|
<div class="more-results"><%= t('atwho.more_results') %></div>
|
|
<% end %>
|
|
<% if projects.blank? %>
|
|
<%= render partial: 'shared/smart_annotation/no_results', locals: { object_type: 'projects' } %>
|
|
<% end %>
|
|
</div>
|
|
<%= render partial: 'shared/smart_annotation/footer' %>
|