Move repo related templates to new templates/repo dir
This commit is contained in:
parent
e7cc202359
commit
60175d5634
4 changed files with 5 additions and 5 deletions
|
@ -72,7 +72,7 @@ getReposR user proj = do
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml $ mconcat
|
setTitle $ toHtml $ mconcat
|
||||||
["Vervis > People > ", user, " > Projects > ", proj, " Repos"]
|
["Vervis > People > ", user, " > Projects > ", proj, " Repos"]
|
||||||
$(widgetFile "repos")
|
$(widgetFile "repo/repos")
|
||||||
|
|
||||||
postReposR :: Text -> Text -> Handler Html
|
postReposR :: Text -> Text -> Handler Html
|
||||||
postReposR user proj = do
|
postReposR user proj = do
|
||||||
|
@ -91,10 +91,10 @@ postReposR user proj = do
|
||||||
redirectUltDest HomeR
|
redirectUltDest HomeR
|
||||||
FormMissing -> do
|
FormMissing -> do
|
||||||
setMessage "Field(s) missing"
|
setMessage "Field(s) missing"
|
||||||
defaultLayout $(widgetFile "repo-new")
|
defaultLayout $(widgetFile "repo/repo-new")
|
||||||
FormFailure l -> do
|
FormFailure l -> do
|
||||||
setMessage $ toHtml $ intercalate "; " l
|
setMessage $ toHtml $ intercalate "; " l
|
||||||
defaultLayout $(widgetFile "repo-new")
|
defaultLayout $(widgetFile "repo/repo-new")
|
||||||
|
|
||||||
getRepoNewR :: Text -> Text -> Handler Html
|
getRepoNewR :: Text -> Text -> Handler Html
|
||||||
getRepoNewR user proj = do
|
getRepoNewR user proj = do
|
||||||
|
@ -105,7 +105,7 @@ getRepoNewR user proj = do
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml $ mconcat
|
setTitle $ toHtml $ mconcat
|
||||||
["Vervis > People > ", user, " > Projects > ", proj, " > New Repo"]
|
["Vervis > People > ", user, " > Projects > ", proj, " > New Repo"]
|
||||||
$(widgetFile "repo-new")
|
$(widgetFile "repo/repo-new")
|
||||||
|
|
||||||
instance ResultList D.DList where
|
instance ResultList D.DList where
|
||||||
emptyList = D.empty
|
emptyList = D.empty
|
||||||
|
@ -139,4 +139,4 @@ getRepoR user proj repo = do
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml $ intercalate " > " $
|
setTitle $ toHtml $ intercalate " > " $
|
||||||
["Vervis", "People", user, "Projects", proj, "Repos", repo]
|
["Vervis", "People", user, "Projects", proj, "Repos", repo]
|
||||||
$(widgetFile "repo")
|
$(widgetFile "repo/repo")
|
||||||
|
|
Loading…
Reference in a new issue