mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
Add non-custom version of bootstrap for rest of pages
This commit is contained in:
parent
217740201b
commit
0ac31b045f
@ -99,8 +99,6 @@ instance Yesod App where
|
|||||||
pc <- widgetToPageContent $ do
|
pc <- widgetToPageContent $ do
|
||||||
$(combineStylesheets 'StaticR
|
$(combineStylesheets 'StaticR
|
||||||
[ css_normalize_css
|
[ css_normalize_css
|
||||||
, css_bootstrap_css
|
|
||||||
, css_bootstrap_responsive_css
|
|
||||||
])
|
])
|
||||||
$((combineScripts 'StaticR
|
$((combineScripts 'StaticR
|
||||||
[ js_jquery_js
|
[ js_jquery_js
|
||||||
|
|||||||
@ -32,6 +32,10 @@ getHomeR = do
|
|||||||
restLatest <- linkFor "unstable-ghc78-inclusive"
|
restLatest <- linkFor "unstable-ghc78-inclusive"
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle "Stackage Server"
|
setTitle "Stackage Server"
|
||||||
|
$(combineStylesheets 'StaticR
|
||||||
|
[ css_bootstrap_modified_css
|
||||||
|
, css_bootstrap_responsive_modified_css
|
||||||
|
])
|
||||||
$(widgetFile "homepage")
|
$(widgetFile "homepage")
|
||||||
where
|
where
|
||||||
linkFor name =
|
linkFor name =
|
||||||
|
|||||||
@ -30,4 +30,8 @@ getPackageR pn = do
|
|||||||
return (latestVersion, packages, downloads, recentDownloads)
|
return (latestVersion, packages, downloads, recentDownloads)
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitle $ toHtml pn
|
setTitle $ toHtml pn
|
||||||
|
$(combineStylesheets 'StaticR
|
||||||
|
[ css_bootstrap_css
|
||||||
|
, css_bootstrap_responsive_css
|
||||||
|
])
|
||||||
$(widgetFile "package")
|
$(widgetFile "package")
|
||||||
|
|||||||
@ -12,6 +12,10 @@ getPackageListR = do
|
|||||||
return $ u E.^. UploadedName
|
return $ u E.^. UploadedName
|
||||||
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")
|
||||||
|
|
||||||
-- FIXME move somewhere else, maybe even yesod-core
|
-- FIXME move somewhere else, maybe even yesod-core
|
||||||
|
|||||||
@ -26,6 +26,10 @@ 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,6 +9,10 @@ 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}|]
|
||||||
|
|||||||
@ -26,4 +26,8 @@ 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")
|
||||||
|
|||||||
@ -22,6 +22,10 @@ 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,6 +28,10 @@ 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
|
||||||
|
|||||||
9
static/css/bootstrap-responsive.css
vendored
Normal file
9
static/css/bootstrap-responsive.css
vendored
Normal file
File diff suppressed because one or more lines are too long
6140
static/css/bootstrap.css
vendored
6140
static/css/bootstrap.css
vendored
File diff suppressed because one or more lines are too long
6143
static/css/bootstrap.modified.css
vendored
Normal file
6143
static/css/bootstrap.modified.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
templates/package.lucius
Normal file
3
templates/package.lucius
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
h3 {
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user