scinote-web/app/views/projects/index/_team_projects.html.erb

20 lines
637 B
Text
Raw Normal View History

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 %>
<% end %>
2020-11-03 15:07:17 +08:00
<% end %>