aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/views/templates/navbar.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/templates/navbar.ejs')
-rw-r--r--app/views/templates/navbar.ejs73
1 files changed, 73 insertions, 0 deletions
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>
+
+