mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
16 lines
702 B
Text
16 lines
702 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="<%= project.name %>" data-id="<%= project.id.base62_encode %>" data-type="prj">
|
|
<span class='sa-type'>Prj</span>
|
|
<span class="item-text"><%= project.name %></span>
|
|
</li>
|
|
<% end %>
|
|
<% if limit_reached %>
|
|
<div class="more-results"><%= t('atwho.more_results') %></div>
|
|
<% end %>
|
|
<% if projects.empty? %>
|
|
<%= render partial: 'shared/smart_annotation/no_results.html.erb' %>
|
|
<% end %>
|
|
</div>
|
|
<%= render partial: 'shared/smart_annotation/footer.html.erb' %>
|