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
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_normalize_css
|
||||
, css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
$((combineScripts 'StaticR
|
||||
[ js_jquery_js
|
||||
|
||||
@ -32,6 +32,10 @@ getHomeR = do
|
||||
restLatest <- linkFor "unstable-ghc78-inclusive"
|
||||
defaultLayout $ do
|
||||
setTitle "Stackage Server"
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_modified_css
|
||||
, css_bootstrap_responsive_modified_css
|
||||
])
|
||||
$(widgetFile "homepage")
|
||||
where
|
||||
linkFor name =
|
||||
|
||||
@ -30,4 +30,8 @@ getPackageR pn = do
|
||||
return (latestVersion, packages, downloads, recentDownloads)
|
||||
defaultLayout $ do
|
||||
setTitle $ toHtml pn
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
$(widgetFile "package")
|
||||
|
||||
@ -12,6 +12,10 @@ getPackageListR = do
|
||||
return $ u E.^. UploadedName
|
||||
defaultLayout $ do
|
||||
setTitle "Package list"
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
cachedWidget (5 * 60) "package-list" $(widgetFile "package-list")
|
||||
|
||||
-- FIXME move somewhere else, maybe even yesod-core
|
||||
|
||||
@ -26,6 +26,10 @@ getProfileR = do
|
||||
<*> selectList [AliasUser ==. uid] [Asc AliasName]
|
||||
defaultLayout $ do
|
||||
setTitle "Your Profile"
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
$(widgetFile "profile")
|
||||
|
||||
aliasToText :: Entity Alias -> Text
|
||||
|
||||
@ -9,6 +9,10 @@ getProgressR key = do
|
||||
case lookup key m of
|
||||
Nothing -> notFound
|
||||
Just (ProgressWorking text) -> defaultLayout $ do
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
addHeader "Refresh" "1"
|
||||
setTitle "Working..."
|
||||
[whamlet|<p>#{text}|]
|
||||
|
||||
@ -26,4 +26,8 @@ getAllSnapshotsR = do
|
||||
)
|
||||
defaultLayout $ do
|
||||
setTitle "Stackage Server"
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
$(widgetFile "all-snapshots")
|
||||
|
||||
@ -22,6 +22,10 @@ getStackageHomeR ident = do
|
||||
base = maybe 0 (const 1) minclusive :: Int
|
||||
defaultLayout $ do
|
||||
setTitle $ toHtml $ stackageTitle stackage
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
$(widgetFile "stackage-home")
|
||||
|
||||
getStackageMetadataR :: PackageSetIdent -> Handler TypedContent
|
||||
|
||||
@ -28,6 +28,10 @@ getUploadStackageR = do
|
||||
_ <- requireAuth
|
||||
defaultLayout $ do
|
||||
setTitle "Upload"
|
||||
$(combineStylesheets 'StaticR
|
||||
[ css_bootstrap_css
|
||||
, css_bootstrap_responsive_css
|
||||
])
|
||||
$(widgetFile "upload-stackage")
|
||||
|
||||
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