diff options
Diffstat (limited to 'app/views/templates')
-rw-r--r-- | app/views/templates/footer.ejs | 20 | ||||
-rw-r--r-- | app/views/templates/header.ejs | 16 | ||||
-rw-r--r-- | app/views/templates/navbar.ejs | 73 |
3 files changed, 109 insertions, 0 deletions
diff --git a/app/views/templates/footer.ejs b/app/views/templates/footer.ejs new file mode 100644 index 0000000..2421d82 --- /dev/null +++ b/app/views/templates/footer.ejs @@ -0,0 +1,20 @@ + + + + <!-- + Le javascript + ================================================== + Placed at the end of the document so the pages load faster + --> + <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> + <script>window.jQuery || document.write('<script src="/js/jquery-1.9.0.min.js"><\/script>')</script> + <script src="/js/bootstrap.min.js"></script> + <script src="/js/retina.js"></script> + <script> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','/js/analytics.js','ga'); + ga('create', 'UA-39435674-1', 'divid.no'); + ga('send', 'pageview'); + </script> diff --git a/app/views/templates/header.ejs b/app/views/templates/header.ejs new file mode 100644 index 0000000..815be5c --- /dev/null +++ b/app/views/templates/header.ejs @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> + + <title><%= title %></title> + <meta name="description" content="" /> + <meta name="author" content=""> + + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <link rel="stylesheet" href="/css/bootstrap.css" /> + <link rel="stylesheet" href="/css/bootstrap-responsive.css"> + + <link rel="stylesheet" href="/css/shame.css" /> + diff --git a/app/views/templates/navbar.ejs b/app/views/templates/navbar.ejs new file mode 100644 index 0000000..f72947d --- /dev/null +++ b/app/views/templates/navbar.ejs @@ -0,0 +1,73 @@ + <!-- Navbar + ================================================== --> + + <div class="navbar navbar-inverse navbar-fixed-top"> + <div class="navbar-inner" id="top-navbar"> + <div class="container"> + <% if (user === undefined) { %> + <div class="row-fluid collapse login-collapse"> + <div class="span6"> + <!--<img src="/img/logo_white.png">--> + </div> + <div class="span6"> + <form action="/login" method="post" id="login-form" class="form-horizontal"> + <div class="control-group"> + <div class="input-prepend"> + <span class="add-on"><i class="icon-envelope icon-white"></i></span> + <input type="email" name="email" id="email" placeholder="E-post" required> + </div> + </div> + <div class="control-group"> + <div class="input-prepend"> + <span class="add-on"><i class="icon-lock icon-white"></i></span> + <input type="password" id="password" name="password" placeholder="Passord" required> + </div> + </div> + <div class="row-fluid"> + <div class="span7"> + <label class="checkbox"> + <input type="checkbox" name="rememberme"> Remember me + </label> + </div> + <div class="span5"> + <button type="submit" class="btn btn-inverse btn-small">Logg inn</button> + </div> + </div> + <div class="row-fluid"> + Eller logg inn med <a href="/auth/facebook">facebook</a> / <a href="/auth/twitter">twitter</a> + </div> + </form> + </div> + </div> + <% } %> + <div class="row-fluid"> + <a href="/"><img class="logo" src="/img/dividlogo.png"></a> + <!--<a class="brand" href="#">Divid</a>--!> + <div class="pull-right"> + <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <div class="login"> + <% if(user === undefined) { %><a class="login" data-toggle="collapse" data-target=".login-collapse" href="#login">Logg inn</a> + <% } else { %>Logget inn som <%= user.username %> <a href="/logout" class="login">Logg ut</a> + <% } %> + </div> + </div> + <div class="nav-collapse collapse"> + <ul class="nav menu"> + <li><a href="/faq">FAQ</a></li> + <li><a href="/contact">Kontakt</a></li> + <li><a href="/project/new">Nytt prosjekt</a></li> + </ul> + </div> + </div> + </div> + </div> + </div> + + |