diff --git a/app/views/puzzles/index.html.erb b/app/views/puzzles/index.html.erb index 5ad4687..ead1a1e 100644 --- a/app/views/puzzles/index.html.erb +++ b/app/views/puzzles/index.html.erb @@ -2,15 +2,18 @@ <%= button_to 'Logout', session_path(1), method: :delete, class: "btn" %> -

Pending Puzzles

+

Pending Puzzles - Total: <%= @pending_puzzles.length %>

<%= render partial: 'puzzles_table', locals: { puzzles: @pending_puzzles, actions: :pending } %> -

Approved Puzzles

+

+ Approved Puzzles - Total: <%= @approved_puzzles.length %> + <% if @approved_puzzles.length < 5 %>⚠️<% end %> +

<%= render partial: 'puzzles_table', locals: { puzzles: @approved_puzzles, actions: :approved } %>

Rejected Puzzles

<%= render partial: 'puzzles_table', locals: { puzzles: @rejected_puzzles, actions: :rejected } %> -

Archive Puzzles

+

Archive Puzzles - Total: <%= @archived_puzzles.length %>

These puzzles have already been sent to the users.

<%= render partial: 'puzzles_table', locals: { puzzles: @archived_puzzles, actions: :archived } %>