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>
|
|
|
|
<% else %>
|
2021-12-13 23:43:16 +08:00
|
|
|
<% project_is_managable = can_manage_project?(@project) %>
|
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',
|
|
|
|
locals: { experiment: card, project: @project, project_is_managable: project_is_managable } %>
|
2021-02-12 19:12:26 +08:00
|
|
|
<% end %>
|
2021-02-02 18:17:29 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|