File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 22 <%= button_to 'Logout' , session_path ( 1 ) , method : :delete , class : "btn" %>
33</ div >
44
5- < h1 > Pending Puzzles - Total: <%= @pending_puzzles . count %> </ h1 >
5+ < h1 > Pending Puzzles - Total: <%= @pending_puzzles . length %> </ h1 >
66<%= render partial : 'puzzles_table' , locals : { puzzles : @pending_puzzles , actions : :pending } %>
77
88< h1 >
9- Approved Puzzles - Total: <%= @approved_puzzles . count %>
10- <% if @approved_puzzles . count < 5 %>
11- < span title ="Less than 5 approved puzzles! " style ="color: #eab308; font-size: 1.2em; vertical-align: middle; "> ⚠️</ span >
12- <% end %>
9+ Approved Puzzles - Total: <%= @approved_puzzles . length %>
10+ <% if @approved_puzzles . length < 5 %> < span title ="Less than 5 approved puzzles! "> ⚠️</ span > <% end %>
1311</ h1 >
1412<%= render partial : 'puzzles_table' , locals : { puzzles : @approved_puzzles , actions : :approved } %>
1513
16- < h1 > Rejected Puzzles - Total: <%= @rejected_puzzles . count %> </ h1 >
14+ < h1 > Rejected Puzzles</ h1 >
1715<%= render partial : 'puzzles_table' , locals : { puzzles : @rejected_puzzles , actions : :rejected } %>
1816
19- < h1 > Archive Puzzles - Total: <%= @archived_puzzles . count %> </ h1 >
17+ < h1 > Archive Puzzles - Total: <%= @archived_puzzles . length %> </ h1 >
2018< p > These puzzles have already been sent to the users.</ p >
2119<%= render partial : 'puzzles_table' , locals : { puzzles : @archived_puzzles , actions : :archived } %>
You can’t perform that action at this time.
0 commit comments