2023-05-18 19:15:35 +08:00
|
|
|
<% if cards.blank? %>
|
|
|
|
<div class="no-data-container">
|
|
|
|
<% if view_mode == 'archived' %>
|
|
|
|
<em><%= t('projects.index.empty_state.no_archived_projects') %></em>
|
2020-11-25 16:50:34 +08:00
|
|
|
<% else %>
|
2023-05-18 19:15:35 +08:00
|
|
|
<em><%= t('projects.index.empty_state.no_active_projects') %></em>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<% cards.each do |card| %>
|
|
|
|
<% cache [current_user, card] do %>
|
|
|
|
<% if card.is_a? Project %>
|
|
|
|
<%= render partial: 'projects/index/project_card', locals: { project: card } %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: 'projects/index/folder_card', locals: { folder: card } %>
|
|
|
|
<% end %>
|
2020-11-25 16:50:34 +08:00
|
|
|
<% end %>
|
2018-09-27 16:43:44 +08:00
|
|
|
<% end %>
|
2020-11-03 15:07:17 +08:00
|
|
|
<% end %>
|