From dc915edb9a493e3d49aa53caaf874627b2a81d9f Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 12 Sep 2010 02:29:25 +0000 Subject: [PATCH] web: add template files I forgot --- hledger-web/.hledger/web/default-layout.cassius | 2 ++ hledger-web/.hledger/web/default-layout.hamlet | 9 +++++++++ hledger-web/.hledger/web/homepage.cassius | 6 ++++++ hledger-web/.hledger/web/homepage.hamlet | 12 ++++++++++++ hledger-web/.hledger/web/homepage.julius | 3 +++ 5 files changed, 32 insertions(+) create mode 100644 hledger-web/.hledger/web/default-layout.cassius create mode 100644 hledger-web/.hledger/web/default-layout.hamlet create mode 100644 hledger-web/.hledger/web/homepage.cassius create mode 100644 hledger-web/.hledger/web/homepage.hamlet create mode 100644 hledger-web/.hledger/web/homepage.julius diff --git a/hledger-web/.hledger/web/default-layout.cassius b/hledger-web/.hledger/web/default-layout.cassius new file mode 100644 index 000000000..13f523676 --- /dev/null +++ b/hledger-web/.hledger/web/default-layout.cassius @@ -0,0 +1,2 @@ +body + font-family: sans-serif diff --git a/hledger-web/.hledger/web/default-layout.hamlet b/hledger-web/.hledger/web/default-layout.hamlet new file mode 100644 index 000000000..4b8ce5070 --- /dev/null +++ b/hledger-web/.hledger/web/default-layout.hamlet @@ -0,0 +1,9 @@ +!!! +%html + %head + %title $pageTitle.pc$ + ^pageHead.pc^ + %body + $maybe mmsg msg + #message $msg$ + ^pageBody.pc^ diff --git a/hledger-web/.hledger/web/homepage.cassius b/hledger-web/.hledger/web/homepage.cassius new file mode 100644 index 000000000..f14022e41 --- /dev/null +++ b/hledger-web/.hledger/web/homepage.cassius @@ -0,0 +1,6 @@ +body + font-family: sans-serif +h1 + text-align: center +h2#$h2id$ + color: red diff --git a/hledger-web/.hledger/web/homepage.hamlet b/hledger-web/.hledger/web/homepage.hamlet new file mode 100644 index 000000000..bd73ffca1 --- /dev/null +++ b/hledger-web/.hledger/web/homepage.hamlet @@ -0,0 +1,12 @@ +%h1 Hello +%h2#$h2id$ You do not have Javascript enabled. +$maybe mu u + %p + You are logged in as $userIdent.snd.u$. $ + %a!href=@AuthR.LogoutR@ Logout + \. +$nothing + %p + You are not logged in. $ + %a!href=@AuthR.LoginR@ Login now + \. diff --git a/hledger-web/.hledger/web/homepage.julius b/hledger-web/.hledger/web/homepage.julius new file mode 100644 index 000000000..9bc2f68d2 --- /dev/null +++ b/hledger-web/.hledger/web/homepage.julius @@ -0,0 +1,3 @@ +window.onload = function(){ + document.getElementById("%h2id%").innerHTML = "Added from JavaScript."; +}