Pick shorter names for project page templates
This commit is contained in:
parent
418d3fd9d2
commit
4d410cf1f7
4 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ getProjectsR ident = do
|
||||||
sharer ^. SharerId ==. project ^. ProjectSharer
|
sharer ^. SharerId ==. project ^. ProjectSharer
|
||||||
orderBy [asc $ project ^. ProjectIdent]
|
orderBy [asc $ project ^. ProjectIdent]
|
||||||
return $ project ^. ProjectIdent
|
return $ project ^. ProjectIdent
|
||||||
defaultLayout $(widgetFile "project/projects")
|
defaultLayout $(widgetFile "project/list")
|
||||||
|
|
||||||
postProjectsR :: Text -> Handler Html
|
postProjectsR :: Text -> Handler Html
|
||||||
postProjectsR ident = do
|
postProjectsR ident = do
|
||||||
|
@ -52,17 +52,17 @@ postProjectsR ident = do
|
||||||
redirect HomeR
|
redirect HomeR
|
||||||
FormMissing -> do
|
FormMissing -> do
|
||||||
setMessage "Field(s) missing"
|
setMessage "Field(s) missing"
|
||||||
defaultLayout $(widgetFile "project/project-new")
|
defaultLayout $(widgetFile "project/new")
|
||||||
FormFailure _l -> do
|
FormFailure _l -> do
|
||||||
setMessage "Project creation failed, see below"
|
setMessage "Project creation failed, see below"
|
||||||
defaultLayout $(widgetFile "project/project-new")
|
defaultLayout $(widgetFile "project/new")
|
||||||
|
|
||||||
getProjectNewR :: Text -> Handler Html
|
getProjectNewR :: Text -> Handler Html
|
||||||
getProjectNewR ident = do
|
getProjectNewR ident = do
|
||||||
Entity _pid person <- requireAuth
|
Entity _pid person <- requireAuth
|
||||||
let sid = personIdent person
|
let sid = personIdent person
|
||||||
((_result, widget), enctype) <- runFormPost $ newProjectForm sid
|
((_result, widget), enctype) <- runFormPost $ newProjectForm sid
|
||||||
defaultLayout $(widgetFile "project/project-new")
|
defaultLayout $(widgetFile "project/new")
|
||||||
|
|
||||||
getProjectR :: Text -> Text -> Handler Html
|
getProjectR :: Text -> Text -> Handler Html
|
||||||
getProjectR user proj = do
|
getProjectR user proj = do
|
||||||
|
@ -70,4 +70,4 @@ getProjectR user proj = do
|
||||||
Entity sid _s <- getBy404 $ UniqueSharerIdent user
|
Entity sid _s <- getBy404 $ UniqueSharerIdent user
|
||||||
Entity _pid p <- getBy404 $ UniqueProject proj sid
|
Entity _pid p <- getBy404 $ UniqueProject proj sid
|
||||||
return p
|
return p
|
||||||
defaultLayout $(widgetFile "project/project")
|
defaultLayout $(widgetFile "project/one")
|
||||||
|
|
Loading…
Reference in a new issue