mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-20 07:51:55 +01:00
Fix stylesheet on all pages
This commit is contained in:
parent
1a59e6c4d9
commit
e6fb29c9ee
@ -64,9 +64,7 @@ getPackageR pn = do
|
|||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml pn
|
setTitle $ toHtml pn
|
||||||
$(combineStylesheets 'StaticR
|
$(combineStylesheets 'StaticR
|
||||||
[ css_bootstrap_css
|
[ css_font_awesome_min_css
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
, css_font_awesome_min_css
|
|
||||||
])
|
])
|
||||||
$(widgetFile "package")
|
$(widgetFile "package")
|
||||||
where enumerate = zip [0::Int ..]
|
where enumerate = zip [0::Int ..]
|
||||||
|
|||||||
@ -16,10 +16,6 @@ getPackageListR = do
|
|||||||
,m E.^. MetadataSynopsis)
|
,m E.^. MetadataSynopsis)
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle "Package list"
|
setTitle "Package list"
|
||||||
$(combineStylesheets 'StaticR
|
|
||||||
[ css_bootstrap_css
|
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
])
|
|
||||||
cachedWidget (5 * 60) "package-list" $(widgetFile "package-list")
|
cachedWidget (5 * 60) "package-list" $(widgetFile "package-list")
|
||||||
where strip x = fromMaybe x (stripSuffix "." x)
|
where strip x = fromMaybe x (stripSuffix "." x)
|
||||||
uniqueByKey = sortBy (comparing fst) . M.toList . M.fromList
|
uniqueByKey = sortBy (comparing fst) . M.toList . M.fromList
|
||||||
|
|||||||
@ -26,10 +26,6 @@ getProfileR = do
|
|||||||
<*> selectList [AliasUser ==. uid] [Asc AliasName]
|
<*> selectList [AliasUser ==. uid] [Asc AliasName]
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle "Your Profile"
|
setTitle "Your Profile"
|
||||||
$(combineStylesheets 'StaticR
|
|
||||||
[ css_bootstrap_css
|
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
])
|
|
||||||
$(widgetFile "profile")
|
$(widgetFile "profile")
|
||||||
|
|
||||||
aliasToText :: Entity Alias -> Text
|
aliasToText :: Entity Alias -> Text
|
||||||
|
|||||||
@ -9,10 +9,6 @@ getProgressR key = do
|
|||||||
case lookup key m of
|
case lookup key m of
|
||||||
Nothing -> notFound
|
Nothing -> notFound
|
||||||
Just (ProgressWorking text) -> defaultLayout $ do
|
Just (ProgressWorking text) -> defaultLayout $ do
|
||||||
$(combineStylesheets 'StaticR
|
|
||||||
[ css_bootstrap_css
|
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
])
|
|
||||||
addHeader "Refresh" "1"
|
addHeader "Refresh" "1"
|
||||||
setTitle "Working..."
|
setTitle "Working..."
|
||||||
[whamlet|<p>#{text}|]
|
[whamlet|<p>#{text}|]
|
||||||
|
|||||||
@ -31,10 +31,6 @@ getAllSnapshotsR = do
|
|||||||
)
|
)
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle "Stackage Server"
|
setTitle "Stackage Server"
|
||||||
$(combineStylesheets 'StaticR
|
|
||||||
[ css_bootstrap_css
|
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
])
|
|
||||||
$(widgetFile "all-snapshots")
|
$(widgetFile "all-snapshots")
|
||||||
where uncrapify now c =
|
where uncrapify now c =
|
||||||
let (E.Value ident, E.Value title, E.Value uploaded, E.Value display, E.Value handle) = c
|
let (E.Value ident, E.Value title, E.Value uploaded, E.Value display, E.Value handle) = c
|
||||||
|
|||||||
@ -22,10 +22,6 @@ getStackageHomeR ident = do
|
|||||||
base = maybe 0 (const 1) minclusive :: Int
|
base = maybe 0 (const 1) minclusive :: Int
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml $ stackageTitle stackage
|
setTitle $ toHtml $ stackageTitle stackage
|
||||||
$(combineStylesheets 'StaticR
|
|
||||||
[ css_bootstrap_css
|
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
])
|
|
||||||
$(widgetFile "stackage-home")
|
$(widgetFile "stackage-home")
|
||||||
|
|
||||||
getStackageMetadataR :: PackageSetIdent -> Handler TypedContent
|
getStackageMetadataR :: PackageSetIdent -> Handler TypedContent
|
||||||
|
|||||||
@ -28,10 +28,6 @@ getUploadStackageR = do
|
|||||||
_ <- requireAuth
|
_ <- requireAuth
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle "Upload"
|
setTitle "Upload"
|
||||||
$(combineStylesheets 'StaticR
|
|
||||||
[ css_bootstrap_css
|
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
])
|
|
||||||
$(widgetFile "upload-stackage")
|
$(widgetFile "upload-stackage")
|
||||||
|
|
||||||
putUploadStackageR :: Handler TypedContent
|
putUploadStackageR :: Handler TypedContent
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user