aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/layout.html
blob: 1be3725c89f22d83dd4cc3dca2279d55cca984fd (plain)
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
<!DOCTYPE html>
<html>
  {% block head %}
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="pyAggr3g470r">
    <meta name="author" content="">

    <title>pyAggr3g470r</title>

    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.css" rel="stylesheet">

    <!-- Add custom CSS here -->
    <style>
        body {margin-top: 60px;}
    </style>

  </head>
  {% endblock %}

  <body>


    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">pyAggr3g470r</a>
        </div>
        {% if g.user.is_authenticated() %}
        <div class="collapse navbar-collapse navbar-ex1-collapse">
            <form class="navbar-form pull-right col-lg-4 col-4 col-sm-4" method="get" action="/search/" role="search">
                <div class="input-group">
                    <input type="search" class="form-control" name="query" placeholder="Search"/>
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
                    </span> 
                </div>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Articles <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="/fetch/">Fetch</a></li>
                        <li><a href="/mark_as_read/">Mark all as read</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Filter <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="/unread/">Unread</a></li>
                        <li><a href="/favorites/">Favorites</a></li>
                        <li><a href="#services">History</a></li>
                    </ul>
                </li>
                <li><a href="/management/">Management</a></li>
                <li><a href="/about/">About</a></li>
                <li><a href="{{ url_for('logout') }}">Logout</a></li>
            </ul>
        </div>
        {% endif %}
      </div>
    </nav>



    {% block content %}{% endblock %}

    <!-- Bootstrap core JavaScript -->
    <!-- Placed at the end of the document so the pages load faster -->
    <!-- Make sure to add jQuery - download the most recent version at http://jquery.com/ -->
    <script src="/static/js/jquery.js"></script>
    <script src="/static/js/bootstrap.js"></script>
  </body>
</html>
bgstack15