about summary refs log tree commit diff stats
path: root/app
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-30 20:10:30 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-30 20:10:30 -0400
commit40d61ac1c9c59a613ea1ef0ede35b1033f2e5830 (patch)
treee0eb70e3eea77506a3b5bba608ded485ca370c9b /app
parent8d885d31985ffc23e4a38abf427f435bb390b331 (diff)
downloadwittle-40d61ac1c9c59a613ea1ef0ede35b1033f2e5830.tar.gz
wittle-40d61ac1c9c59a613ea1ef0ede35b1033f2e5830.tar.bz2
wittle-40d61ac1c9c59a613ea1ef0ede35b1033f2e5830.zip
localtime dates show
Diffstat (limited to 'app')
-rw-r--r--app/views/wittle/puzzles/about.html.haml2
-rw-r--r--app/views/wittle/puzzles/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/wittle/puzzles/about.html.haml b/app/views/wittle/puzzles/about.html.haml index a96fcf9..dcc3132 100644 --- a/app/views/wittle/puzzles/about.html.haml +++ b/app/views/wittle/puzzles/about.html.haml
@@ -1,5 +1,5 @@
1%p.summary <strong>Wittle</strong> gives you daily randomly-generated puzzles in the style of those from the 2016 indie game, <a href="http://the-witness.net">The Witness</a>. There are three difficulties of puzzles to choose from: 1%p.summary <strong>Wittle</strong> gives you daily randomly-generated puzzles in the style of those from the 2016 indie game, <a href="http://the-witness.net">The Witness</a>. There are three difficulties of puzzles to choose from:
2%h2#current-date= @normal_puzzle.created_at.strftime("%B %-d, %Y") 2%h2#current-date= @normal_puzzle.created_at.localtime.strftime("%B %-d, %Y")
3%nav#choose-difficulty 3%nav#choose-difficulty
4 #normal-link 4 #normal-link
5 = link_to "Normal", @normal_puzzle 5 = link_to "Normal", @normal_puzzle
diff --git a/app/views/wittle/puzzles/show.html.haml b/app/views/wittle/puzzles/show.html.haml index 7307152..679046d 100644 --- a/app/views/wittle/puzzles/show.html.haml +++ b/app/views/wittle/puzzles/show.html.haml
@@ -1,6 +1,6 @@
1.breadcrumb= link_to "← Back to home page", root_path 1.breadcrumb= link_to "← Back to home page", root_path
2%h1 Wittle ##{@puzzle.id} 2%h1 Wittle ##{@puzzle.id}
3.puzzle-description #{@puzzle.category.capitalize} - #{@puzzle.created_at.strftime("%B %-d, %Y")} 3.puzzle-description #{@puzzle.category.capitalize} - #{@puzzle.created_at.localtime.strftime("%B %-d, %Y")}
4#puzzle-container{ style: "display: flex; justify-content: center; align-items: center" } 4#puzzle-container{ style: "display: flex; justify-content: center; align-items: center" }
5 %svg#puzzle{ style: "pointer-events: auto"} 5 %svg#puzzle{ style: "pointer-events: auto"}
6#submission-form 6#submission-form