mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
24 lines
1 KiB
Text
24 lines
1 KiB
Text
<% if filters_included && cards.blank? %>
|
|
<div class="no-results-container">
|
|
<%= image_tag('/images/no_search_results.png', class: 'no-results-img') %>
|
|
<div class="no-results-title"><%= t('projects.index.no_results_found') %></div>
|
|
<div class="no-results-description"><%= t('projects.index.no_results_description') %></div>
|
|
</div>
|
|
<% elsif cards.blank? || (@project.archived? && view_mode == 'active') %>
|
|
<div class="no-data-container">
|
|
<% if view_mode == 'archived' %>
|
|
<em><%= t('projects.show.empty_state.no_archived_experiments') %></em>
|
|
<% elsif @project.archived? %>
|
|
<em><%= t('projects.show.empty_state.no_active_experiment_archived_project') %></em>
|
|
<% else %>
|
|
<em><%= t('projects.show.empty_state.no_active_experiments') %></em>
|
|
<% end %>
|
|
</div>
|
|
<% else %>
|
|
<% cards.each do |card| %>
|
|
<% cache [current_user, @project, card] do %>
|
|
<%= render partial: 'projects/show/experiment_card',
|
|
locals: { experiment: card, project: @project } %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|