2021-02-12 19:12:26 +08:00
|
|
|
<% 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>
|
2023-05-18 19:15:35 +08:00
|
|
|
<% 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>
|
2021-02-12 19:12:26 +08:00
|
|
|
<% else %>
|
2022-08-31 21:26:10 +08:00
|
|
|
<% cards.each do |card| %>
|
2022-01-07 21:27:52 +08:00
|
|
|
<% cache [current_user, @project, card] do %>
|
2021-12-13 23:43:16 +08:00
|
|
|
<%= render partial: 'projects/show/experiment_card',
|
2022-11-07 22:51:39 +08:00
|
|
|
locals: { experiment: card, project: @project } %>
|
2021-02-12 19:12:26 +08:00
|
|
|
<% end %>
|
2021-02-02 18:17:29 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|