aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/views/templates/navbar.ejs
blob: f72947dd89bbdf55d5d350d9bc852155682d39eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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>