aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/views/navbar.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/navbar.ejs')
-rw-r--r--views/navbar.ejs60
1 files changed, 60 insertions, 0 deletions
diff --git a/views/navbar.ejs b/views/navbar.ejs
new file mode 100644
index 0000000..c339acc
--- /dev/null
+++ b/views/navbar.ejs
@@ -0,0 +1,60 @@
+ <!-- Navbar
+ ================================================== -->
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-inner" id="top-navbar">
+ <div class="container">
+ <% if (!loggedin) { %>
+ <div class="row-fluid collapse login-collapse">
+ <div class="span7">
+ <!--<img src="/img/logo_white.png">-->
+ </div>
+ <div class="span5">
+ <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="user" id="user-tf" 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="pass-tf" placeholder="Passord" required>
+ </div>
+ </div>
+ <div class="row-fluid">
+ <div class="span7">
+ <label class="checkbox">
+ <input type="checkbox"> Remember me
+ </label>
+ </div>
+ <div class="span5">
+ <button type="submit" class="btn btn-inverse btn-small">Logg inn</button>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+ <% } %>
+ <div class="row">
+ <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>
+ </button>
+ <a class="brand" href="#">Divid</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav">
+ <li><a href="#signup">signup</a></li>
+ <li><a href="#dashboard">Dashboard</a></li>
+ </ul>
+ </div>
+ <% if(!loggedin) { %><a class="brand login" data-toggle="collapse" data-target=".login-collapse" href="#login">Logg inn</a>
+ <% } else { %><a class="brand login">Logg ut</a>
+ <% } %>
+ </div>
+ </div>
+ </div>
+ </div>
+
+