^{pageBody pc}
diff --git a/templates/login-layout-wrapper.hamlet b/templates/login-layout-wrapper.hamlet new file mode 100644 index 0000000..ad71797 --- /dev/null +++ b/templates/login-layout-wrapper.hamlet @@ -0,0 +1,75 @@ +$newline never +\ +\ +\ +\ +\ + + + + + #{pageTitle pc} + <meta name="description" content=""> + <meta name="author" content=""> + + <meta name="viewport" content="width=device-width,initial-scale=1"> + + ^{pageHead pc} + + \<!--[if lt IE 9]> + \<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> + \<![endif]--> + + <script> + document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/,'js'); + <body> + <div class="container"> + <header> + <nav class="navbar navbar-default navbar-fixed-top"> + <div class="container-fluid"> + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> + <span class="sr-only">Toggle navigation + <span class="icon-bar"> + <span class="icon-bar"> + <span class="icon-bar"> + <a class="navbar-brand" href="@{HomeR}">NEAT + + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav"> + <li><a href="@{HomeR}">Home</a> + <li><a href="@{WalletR}">Transactions</a> + <li><a href="@{StockR}">Stock</a> + <li><a href="@{SettingsR}">Settings</a> + <li><a href="#">#{prettyISK $ userBalanceCents user} ISK</a> + <!--li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span> + <ul class="dropdown-menu"> + <li><a href="#">Action</a> + <li><a href="#">Another action</a> + <li><a href="#">Something else here</a> + <li role="separator" class="divider"> + <li><a href="#">Separated link</a> + <li role="separator" class="divider"> + <li><a href="@SettingsR">Settings</a--> + <ul class="nav navbar-nav navbar-right"> + <li><a href="@{UpdateR}">Update</a> + <li><a href="@{AuthR LogoutR}">Logout</a> + <div id="main" role="main"> + ^{pageBody pc} + <footer class="footer"> + <div class="container"> + #{appCopyright $ appSettings master} + + $maybe analytics <- appAnalytics $ appSettings master + <script> + if(!window.location.href.match(/localhost/)){ + window._gaq = [['_setAccount','#{analytics}'],['_trackPageview'],['_trackPageLoadTime']]; + (function() { + \ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + \ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + \ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + }