mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
23 lines
1 KiB
Text
23 lines
1 KiB
Text
<% limit_reached = users.length == Constants::ATWHO_SEARCH_LIMIT + 1 %>
|
|
<div class="atwho-header">
|
|
<span><%= t("atwho.users.header") %></span>
|
|
<div class="dismiss"><span class="fas fa-times"></span></div>
|
|
</div>
|
|
<div class="atwho-scroll-container">
|
|
<% users.limit(Constants::ATWHO_SEARCH_LIMIT).each do |user| %>
|
|
<li class="atwho-user" data-full-name="<%= user.full_name %>" data-id="<%= user.id.base62_encode %>" data-type="rep_item">
|
|
<img src="<%= avatar_path(user, :icon_small) %>" class="avatar" />
|
|
<div class="user-info">
|
|
<div class="user-name item-text"><%= user.full_name %></div>
|
|
<div class="user-email item-text"><%= user.email %></div>
|
|
</div>
|
|
</li>
|
|
<% end %>
|
|
<% if limit_reached %>
|
|
<div class="more-results"><%= t('atwho.more_results') %></div>
|
|
<% end %>
|
|
<% if users.blank? %>
|
|
<%= render partial: 'shared/smart_annotation/no_results.html.erb', locals: { object_type: 'users' } %>
|
|
<% end %>
|
|
</div>
|
|
<%= render partial: 'shared/smart_annotation/footer.html.erb' %>
|