summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-27 20:47:48 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-27 20:47:48 -0400
commitc0ca6f44ac2cbe6d1cbb82bc73e2d2ead7695770 (patch)
treef05c8690da98b0d549e5b93c9400c03927b89b94 /templates
parentecd63e29818c009bfc96d7a011bb8a2f1304e0ae (diff)
template reorg
Diffstat (limited to 'templates')
-rw-r--r--templates/bootstrap.hamlet40
-rw-r--r--templates/default-layout.hamlet3
-rw-r--r--templates/page.cassius5
-rw-r--r--templates/page.hamlet42
4 files changed, 48 insertions, 42 deletions
diff --git a/templates/bootstrap.hamlet b/templates/bootstrap.hamlet
index 360b3d686..389895df7 100644
--- a/templates/bootstrap.hamlet
+++ b/templates/bootstrap.hamlet
@@ -6,42 +6,4 @@ $doctype 5
<meta name="viewport" content="width=device-width,initial-scale=1.0">
^{pageHead page}
<body>
-
- <div .navbar .navbar-fixed-top>
- <div .navbar-inner>
- <div .container>
- <a .brand href="#">
- git-annex
- <ul .nav>
- <li .active>
- <a href="#">Dashboard</a>
- <li>
- <a href="@{ConfigR}">Config</a>
- <ul .nav .pull-right>
- <li .dropdown #menu1>
- <a .dropdown-toggle data-toggle="dropdown" href="#menu1">
- Current Repository: #{baseTitle webapp}
- <b .caret></b>
- <ul .dropdown-menu>
- <li><a href="#">#{baseTitle webapp}</a></li>
- <li .divider></li>
- <li><a href="#">Add new repository</a></li>
-
- <div .container-fluid>
- <div .row-fluid>
- <div .span3>
- <div .sidebar-nav>
- <div .alert .alert-info>
- <a .close data-dismiss="alert" href="#">&times;</a>
- <b>This is just a demo.</b> If this were not just a demo,
- I'd not be filling this sidebar with silly alerts.
- <div .alert .alert-success>
- <a .close data-dismiss="alert" href="#">&times;</a>
- <b>Well done!</b>
- You successfully read this important alert message.
- <div .alert .alert-error>
- <a .close data-dismiss="alert" href="#">&times;</a>
- <b>Whoops!</b>
- Unable to connect to blah blah..
- <div .span9>
- ^{pageBody page}
+ ^{pageBody page}
diff --git a/templates/default-layout.hamlet b/templates/default-layout.hamlet
deleted file mode 100644
index 3701e3c42..000000000
--- a/templates/default-layout.hamlet
+++ /dev/null
@@ -1,3 +0,0 @@
-$maybe msg <- mmsg
- <div #message>#{msg}
-^{widget}
diff --git a/templates/page.cassius b/templates/page.cassius
new file mode 100644
index 000000000..39decd03a
--- /dev/null
+++ b/templates/page.cassius
@@ -0,0 +1,5 @@
+body
+ padding-top: 60px
+ padding-bottom: 40px
+.sidebar-nav
+ padding: 9px 0
diff --git a/templates/page.hamlet b/templates/page.hamlet
new file mode 100644
index 000000000..ae80bb05d
--- /dev/null
+++ b/templates/page.hamlet
@@ -0,0 +1,42 @@
+<div .navbar .navbar-fixed-top>
+ <div .navbar-inner>
+ <div .container>
+ <a .brand href="#">
+ git-annex
+ <ul .nav>
+ <li .active>
+ <a href="#">Dashboard</a>
+ <li>
+ <a href="@{ConfigR}">Config</a>
+ <ul .nav .pull-right>
+ <li .dropdown #menu1>
+ <a .dropdown-toggle data-toggle="dropdown" href="#menu1">
+ Current Repository: #{baseTitle webapp}
+ <b .caret></b>
+ <ul .dropdown-menu>
+ <li><a href="#">#{baseTitle webapp}</a></li>
+ <li .divider></li>
+ <li><a href="#">Add new repository</a></li>
+
+<div .container-fluid>
+ <div .row-fluid>
+ <div .span3>
+ <div .sidebar-nav>
+ <div .alert .alert-info>
+ <a .close data-dismiss="alert" href="#">&times;</a>
+ <b>This is just a demo.</b> If this were not just a demo,
+ I'd not be filling this sidebar with silly alerts.
+ <div .alert .alert-success>
+ <a .close data-dismiss="alert" href="#">&times;</a>
+ <b>Well done!</b>
+ You successfully read this important alert message.
+ <div .alert .alert-error>
+ <a .close data-dismiss="alert" href="#">&times;</a>
+ <b>Whoops!</b>
+ Unable to connect to blah blah..
+ <div .span9>
+ $maybe msg <- mmsg
+ <div .alert .alert-info>
+ <a .close data-dismiss="alert" href="#">&times;</a>
+ #{msg}
+ ^{widget}