template reorg
This commit is contained in:
parent
ecd63e2981
commit
c0ca6f44ac
6 changed files with 49 additions and 51 deletions
|
@ -61,11 +61,10 @@ instance Yesod WebApp where
|
||||||
page <- widgetToPageContent $ do
|
page <- widgetToPageContent $ do
|
||||||
addStylesheet $ StaticR css_bootstrap_css
|
addStylesheet $ StaticR css_bootstrap_css
|
||||||
addStylesheet $ StaticR css_bootstrap_responsive_css
|
addStylesheet $ StaticR css_bootstrap_responsive_css
|
||||||
addStylesheet $ StaticR css_webapp_css
|
|
||||||
addScript $ StaticR jquery_full_js
|
addScript $ StaticR jquery_full_js
|
||||||
addScript $ StaticR js_bootstrap_dropdown_js
|
addScript $ StaticR js_bootstrap_dropdown_js
|
||||||
addScript $ StaticR js_bootstrap_alert_js
|
addScript $ StaticR js_bootstrap_alert_js
|
||||||
$(widgetFile "default-layout")
|
$(widgetFile "page")
|
||||||
hamletToRepHtml $(hamletFile $ hamletTemplate "bootstrap")
|
hamletToRepHtml $(hamletFile $ hamletTemplate "bootstrap")
|
||||||
|
|
||||||
{- Require an auth token be set when accessing any (non-static route) -}
|
{- Require an auth token be set when accessing any (non-static route) -}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
body {
|
|
||||||
padding-top: 60px;
|
|
||||||
padding-bottom: 40px;
|
|
||||||
}
|
|
||||||
.sidebar-nav {
|
|
||||||
padding: 9px 0;
|
|
||||||
}
|
|
|
@ -6,42 +6,4 @@ $doctype 5
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
^{pageHead page}
|
^{pageHead page}
|
||||||
<body>
|
<body>
|
||||||
|
^{pageBody page}
|
||||||
<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="#">×</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="#">×</a>
|
|
||||||
<b>Well done!</b>
|
|
||||||
You successfully read this important alert message.
|
|
||||||
<div .alert .alert-error>
|
|
||||||
<a .close data-dismiss="alert" href="#">×</a>
|
|
||||||
<b>Whoops!</b>
|
|
||||||
Unable to connect to blah blah..
|
|
||||||
<div .span9>
|
|
||||||
^{pageBody page}
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
$maybe msg <- mmsg
|
|
||||||
<div #message>#{msg}
|
|
||||||
^{widget}
|
|
5
templates/page.cassius
Normal file
5
templates/page.cassius
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
body
|
||||||
|
padding-top: 60px
|
||||||
|
padding-bottom: 40px
|
||||||
|
.sidebar-nav
|
||||||
|
padding: 9px 0
|
42
templates/page.hamlet
Normal file
42
templates/page.hamlet
Normal file
|
@ -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="#">×</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="#">×</a>
|
||||||
|
<b>Well done!</b>
|
||||||
|
You successfully read this important alert message.
|
||||||
|
<div .alert .alert-error>
|
||||||
|
<a .close data-dismiss="alert" href="#">×</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="#">×</a>
|
||||||
|
#{msg}
|
||||||
|
^{widget}
|
Loading…
Reference in a new issue