aboutsummaryrefslogtreecommitdiff
path: root/src/include/layout-main.jade
blob: 0ca31347efb3c0dc285266638aed70592590765a (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
74
75
76
77
78
79
80
81
82
83
84
//
  Web Frontend for Botleagues
  Copyright (C) 2015 Camil Staps <info@camilstaps.nl>

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.

doctype html
html(lang="en")
  head
    include ./head.jade
    
  body
    .container

      block menu
        -var selected = '/'; //default

      -var menu = { 'Home': '/', 'About': '/about' };

      .header.clearfix
        nav: ul.nav.nav-pills.pull-right#nav
          each val, key in menu
            if selected === val
              li.active(role='presentation'): a(href=val,title=key)= key
            else
              li(role='presentation'): a(href=val,title=key)= key
          li.login-link(role='presentation'): a.btn-botleagues-login(href='#',title='Login') Login
        h3: a.no-style(href='/') Botleagues

      #messages

      #login-block
        form.form-inline#login-form(action='#',method='post')
          .form-group
            input.form-control#login-email(type='email',placeholder='Email')
          | &nbsp;
          .form-group
            input.form-control#login-password(type='password',placeholder='Password')
          | &nbsp;
          .form-group
            button.btn.btn-default.pull-right#login-submit(role='submit') Login
        br(style='clear:both;')

      -var header_jumbotron = false
      block header

      -if (header_jumbotron)
        .jumbotron
          h1= header_title
          -if (header_subtitle)
            p.lead= header_subtitle
          p.row
            block header_content
      -else
        .row
          .col-lg-12
            .bs-component
              h1= header_title
              -if (header_subtitle)
                p.lead= header_subtitle
              p.row
                block header_content

      block content

      footer.footer: :markdown
        &copy; [ViviSoft](http://vivisoft.nl/) 2015

    script(type='text/javascript')!= 'var selected_page = "' + selected + '";'

    include ./foot.jade

    block js