mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-28 10:54:54 +09:00
Move key templates to new templates/key dir
This commit is contained in:
parent
0769902f96
commit
eadce14e42
4 changed files with 5 additions and 5 deletions
|
@ -52,7 +52,7 @@ getKeysR user = do
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml $
|
setTitle $ toHtml $
|
||||||
intercalate " > " ["Vervis", "People", user, "Keys"]
|
intercalate " > " ["Vervis", "People", user, "Keys"]
|
||||||
$(widgetFile "keys")
|
$(widgetFile "key/keys")
|
||||||
|
|
||||||
postKeysR :: Text -> Handler Html
|
postKeysR :: Text -> Handler Html
|
||||||
postKeysR user = do
|
postKeysR user = do
|
||||||
|
@ -68,10 +68,10 @@ postKeysR user = do
|
||||||
redirectUltDest HomeR
|
redirectUltDest HomeR
|
||||||
FormMissing -> do
|
FormMissing -> do
|
||||||
setMessage "Field(s) missing"
|
setMessage "Field(s) missing"
|
||||||
defaultLayout $(widgetFile "key-new")
|
defaultLayout $(widgetFile "key/key-new")
|
||||||
FormFailure _l -> do
|
FormFailure _l -> do
|
||||||
setMessage "Invalid input, see below"
|
setMessage "Invalid input, see below"
|
||||||
defaultLayout $(widgetFile "key-new")
|
defaultLayout $(widgetFile "key/key-new")
|
||||||
|
|
||||||
getKeyNewR :: Text -> Handler Html
|
getKeyNewR :: Text -> Handler Html
|
||||||
getKeyNewR user = do
|
getKeyNewR user = do
|
||||||
|
@ -82,7 +82,7 @@ getKeyNewR user = do
|
||||||
((_result, widget), enctype) <- runFormPost $ newKeyForm pid
|
((_result, widget), enctype) <- runFormPost $ newKeyForm pid
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml $ "Vervis > People > " <> user <> " > New Key"
|
setTitle $ toHtml $ "Vervis > People > " <> user <> " > New Key"
|
||||||
$(widgetFile "key-new")
|
$(widgetFile "key/key-new")
|
||||||
|
|
||||||
getKeyR :: Text -> Text -> Handler Html
|
getKeyR :: Text -> Text -> Handler Html
|
||||||
getKeyR user tag = do
|
getKeyR user tag = do
|
||||||
|
@ -95,4 +95,4 @@ getKeyR user tag = do
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml $
|
setTitle $ toHtml $
|
||||||
intercalate " > " ["Vervis", "People", user, "Keys", tag]
|
intercalate " > " ["Vervis", "People", user, "Keys", tag]
|
||||||
$(widgetFile "key")
|
$(widgetFile "key/key")
|
||||||
|
|
Loading…
Reference in a new issue