mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 21:13:07 +03:00
Add help to category pages
This commit is contained in:
parent
8d68933137
commit
e21e58aede
@ -106,7 +106,6 @@ renderRoot globalState mbSearchQuery =
|
||||
you won't be able to edit anything.
|
||||
|]
|
||||
renderHelp
|
||||
onPageLoad $ JS.showOrHideHelp (JS.selectId "help", helpVersion)
|
||||
form_ $ do
|
||||
input_ [type_ "text", name_ "q", id_ "search", placeholder_ "search",
|
||||
value_ (fromMaybe "" mbSearchQuery)]
|
||||
@ -218,6 +217,7 @@ renderCategoryPage category =
|
||||
Javascript, but since all editing needs Javascript to work,
|
||||
you won't be able to edit anything.
|
||||
|]
|
||||
renderHelp
|
||||
renderCategory category
|
||||
|
||||
-- TODO: allow archiving items if they are in every way worse than the rest,
|
||||
@ -252,6 +252,8 @@ renderHelp = do
|
||||
a_ [href_ "#", onclick_ handler] "hide this message"
|
||||
"."
|
||||
|
||||
onPageLoad $ JS.showOrHideHelp (JS.selectId "help", helpVersion)
|
||||
|
||||
helpVersion :: Int
|
||||
helpVersion = 3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user