This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "snap-website".
The branch, master has been updated
via c5611f9b71f3b55b9bd24d065bbcef26855465fe (commit)
from 867f737d3fc741379e1c22594f800d472c4ef9b4 (commit)
Summary of changes:
src/Main.hs | 7 ++++++-
static/media/css/main.css | 6 ++++++
templates/wrap.tpl | 6 +++++-
3 files changed, 17 insertions(+), 2 deletions(-)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c5611f9b71f3b55b9bd24d065bbcef26855465fe
Author: Mighty Byte <[email protected]>
Date: Tue May 25 21:59:02 2010 -0400
Added "Powered by Snap" footer.
diff --git a/src/Main.hs b/src/Main.hs
index 16ffd02..674e176 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -143,6 +143,9 @@ apidoc mvar = do
docframe src = return [ mkElement "frame" [ ("id" , "docframe")
, ("src", src ) ] [] ]
+serverVersion :: Splice Snap
+serverVersion = return $ [Text (B.append "Snap-" snapServerVersion)]
+
main :: IO ()
main = do
@@ -153,7 +156,9 @@ main = do
setLocaleToUTF8
- (origTs,staticState) <- bindStaticTag emptyTemplateState
+ (origTs,staticState) <- bindStaticTag .
+ bindSplice "server" serverVersion
+ $ emptyTemplateState
ets <- loadTemplates "templates" origTs
let ts = either error id ets
diff --git a/static/media/css/main.css b/static/media/css/main.css
index ae5b471..5b4ed52 100644
--- a/static/media/css/main.css
+++ b/static/media/css/main.css
@@ -591,8 +591,14 @@ pre.sourceCode span.InfixOperator { color: #aaa; }
text-align: right;
background: #f5f9ff;
vertical-align: middle;
+ line-height: 15px;
}
#footer img{
vertical-align: middle;
padding-left: 10px;
}
+
+#footer p{
+ margin: 0;
+ padding: 0;
+}
diff --git a/templates/wrap.tpl b/templates/wrap.tpl
index 57ab4b7..767da3f 100644
--- a/templates/wrap.tpl
+++ b/templates/wrap.tpl
@@ -13,12 +13,16 @@
</div><!--end main-->
<div id="footer">
-
+<p>
This work is licensed under
a <a rel="license"
href="http://creativecommons.org/licenses/by-nd/3.0/">Creative Commons
Attribution-NoDerivs 3.0 Unported
License</a>
+</p>
+<p>
+Powered by <server/>
+</p>
</div><!--end footer-->
-----------------------------------------------------------------------
hooks/post-receive
--
snap-website
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap