diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 00:18:04 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 00:18:04 -0400 |
| commit | 489583486bd9d31de5bec8751d7e63997c325fd3 (patch) | |
| tree | f6ebe78ad4acbfb39e76bc80aeea0ca9f17b5a1b /app/views | |
| parent | 392cc8a0f938b0f363e1a9227d5ff9a3ecbdbe10 (diff) | |
| download | wittle-489583486bd9d31de5bec8751d7e63997c325fd3.tar.gz wittle-489583486bd9d31de5bec8751d7e63997c325fd3.tar.bz2 wittle-489583486bd9d31de5bec8751d7e63997c325fd3.zip | |
added archive page and some expert puzzles
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 | ||
