about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-18 09:33:58 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-18 09:33:58 -0500
commitfa123398b263283d3f770c81b3324e1b8602b490 (patch)
treeba1a07f87e02186aaf378358e48590d436e6605e
parentf03dd9f422b7f88f7a14f658715865a2db552b70 (diff)
downloadwittle-fa123398b263283d3f770c81b3324e1b8602b490.tar.gz
wittle-fa123398b263283d3f770c81b3324e1b8602b490.tar.bz2
wittle-fa123398b263283d3f770c81b3324e1b8602b490.zip
Score lists now show up to 100 scores
-rw-r--r--app/views/wittle/puzzles/show.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/wittle/puzzles/show.html.haml b/app/views/wittle/puzzles/show.html.haml index 5eb34a4..6825f22 100644 --- a/app/views/wittle/puzzles/show.html.haml +++ b/app/views/wittle/puzzles/show.html.haml
@@ -25,7 +25,7 @@
25 #by-time 25 #by-time
26 %h2 Fastest Solves 26 %h2 Fastest Solves
27 %table 27 %table
28 - @puzzle.scores.where("seconds_taken IS NOT NULL").order(seconds_taken: :asc).limit(20).each_with_index do |score, i| 28 - @puzzle.scores.where("seconds_taken IS NOT NULL").order(seconds_taken: :asc).limit(100).each_with_index do |score, i|
29 %tr 29 %tr
30 %td #{(i + 1)}. 30 %td #{(i + 1)}.
31 %td= score.name 31 %td= score.name
@@ -33,7 +33,7 @@
33 #by-when 33 #by-when
34 %h2 Completion Order 34 %h2 Completion Order
35 %table 35 %table
36 - @puzzle.scores.order(created_at: :asc).limit(20).each_with_index do |score, i| 36 - @puzzle.scores.order(created_at: :asc).limit(100).each_with_index do |score, i|
37 %tr 37 %tr
38 %td #{(i + 1)}. 38 %td #{(i + 1)}.
39 %td= score.name 39 %td= score.name