Permalink
Browse files

Added missing bootstrap images (#344)

  • Loading branch information...
1 parent e18c678 commit a628705493f44366fdd7b8991aab07c737ae7ac1 @snoyberg snoyberg committed Apr 29, 2012
@@ -126,6 +126,7 @@ scaffold = do
mkDir "templates"
mkDir "static"
mkDir "static/css"
+ mkDir "static/img"
mkDir "static/js"
mkDir "config"
mkDir "Model"
@@ -156,8 +157,18 @@ scaffold = do
writeFile' "Settings.hs" $(codegen "Settings.hs")
writeFile' "Settings/StaticFiles.hs" $(codegen "Settings/StaticFiles.hs")
writeFile' "Settings/Development.hs" $(codegen "Settings/Development.hs")
+
writeFile' "static/css/bootstrap.css"
$(codegen "static/css/bootstrap.css")
+ S.writeFile (dir ++ "/static/img/glyphicons-halflings.png")
+ $(runIO (S.readFile "scaffold/static/img/glyphicons-halflings.png") >>= \bs -> do
+ pack <- [|S.pack|]
+ return $ pack `AppE` LitE (StringL $ S.unpack bs))
+ S.writeFile (dir ++ "/static/img/glyphicons-halflings-white.png")
+ $(runIO (S.readFile "scaffold/static/img/glyphicons-halflings-white.png") >>= \bs -> do
+ pack <- [|S.pack|]
+ return $ pack `AppE` LitE (StringL $ S.unpack bs))
+
writeFile' "templates/default-layout.hamlet"
$(codegen "templates/default-layout.hamlet")
writeFile' "templates/default-layout-wrapper.hamlet"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -38,6 +38,8 @@ extra-source-files:
scaffold/deploy/Procfile.cg
scaffold/templates/homepage.hamlet.cg
scaffold/static/css/bootstrap.css.cg
+ scaffold/static/img/glyphicons-halflings.png
+ scaffold/static/img/glyphicons-halflings-white.png
scaffold/templates/default-layout.hamlet.cg
scaffold/templates/homepage.julius.cg
scaffold/templates/default-layout-wrapper.hamlet.cg

0 comments on commit a628705

Please sign in to comment.