diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/wittle/puzzles/about.html.haml | 1 | ||||
-rw-r--r-- | app/views/wittle/puzzles/index.html.haml | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/app/views/wittle/puzzles/about.html.haml b/app/views/wittle/puzzles/about.html.haml index 628ba0b..6a47972 100644 --- a/app/views/wittle/puzzles/about.html.haml +++ b/app/views/wittle/puzzles/about.html.haml | |||
@@ -1,3 +1,4 @@ | |||
1 | %p by Hatkirby, with help from Sigma144 and jbzdarkid | 1 | %p by Hatkirby, with help from Sigma144 and jbzdarkid |
2 | %p= link_to "Normal", @normal_puzzle | 2 | %p= link_to "Normal", @normal_puzzle |
3 | %p= link_to "Hard", @hard_puzzle | 3 | %p= link_to "Hard", @hard_puzzle |
4 | %p= link_to "Expert", @expert_puzzle | ||
diff --git a/app/views/wittle/puzzles/index.html.haml b/app/views/wittle/puzzles/index.html.haml index e69de29..097eb87 100644 --- a/app/views/wittle/puzzles/index.html.haml +++ b/app/views/wittle/puzzles/index.html.haml | |||
@@ -0,0 +1,25 @@ | |||
1 | %h1 Archive | ||
2 | %table#archive | ||
3 | %tr | ||
4 | %th | ||
5 | %th Normal | ||
6 | %th Hard | ||
7 | %th Expert | ||
8 | - @puzzles.each do |date, dps| | ||
9 | %tr{ class: cycle("even", "odd") } | ||
10 | %td= date.strftime("%B %-d, %Y") | ||
11 | %td | ||
12 | - if dps.has_key? "normal" | ||
13 | %ul | ||
14 | - dps["normal"].each do |puzzle| | ||
15 | %li= link_to "\##{puzzle.id}", puzzle | ||
16 | %td | ||
17 | - if dps.has_key? "hard" | ||
18 | %ul | ||
19 | - dps["hard"].each do |puzzle| | ||
20 | %li= link_to "\##{puzzle.id}", puzzle | ||
21 | %td | ||
22 | - if dps.has_key? "expert" | ||
23 | %ul | ||
24 | - dps["expert"].each do |puzzle| | ||
25 | %li= link_to "\##{puzzle.id}", puzzle | ||