Blame view

FlaskT.v0.3/templates/base.html 3.78 KB
1f1943eb   qijun   initial commit
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
85
86
87
88
89
90
91
92
93
94
{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% import "bootstrap/utils.html" as util %}

{% block head %}
    {#    {{ super() }}#}
    {{ fixes.ie8() }}
    <title>Taskr</title>

    <link rel="stylesheet"
          href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
    <link rel="stylesheet"
          href="{{ url_for('static', filename='css/font-awesome.min.css') }}">

    <link rel="stylesheet"
          href="{{ url_for('static', filename='css/jasny-bootstrap.min.css') }}">
    <link rel="stylesheet"
          href="{{ url_for('static', filename='css/bootstrap-markdown.min.css') }}">
    <link rel="stylesheet"
          href="{{ url_for('static', filename='css/bootstrap-tagsinput.css') }}">
    <link rel="stylesheet"
          href="{{ url_for('static', filename='css/bootstrap-editable.css') }}">

    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">

{% endblock %}

{% block scripts %}
    {#    {{ super() }}#}

    <script src="{{ url_for('static',filename='js/jquery-1.11.1.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/jquery-ui.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/bootstrap.min.js') }}"></script>

    <script src="{{ url_for('static',filename='js/jasny-bootstrap.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/bootstrap-markdown.js') }}"></script>
    <script src="{{ url_for('static',filename='js/bootstrap-tagsinput.js') }}"></script>
    <script src="{{ url_for('static',filename='js/bootstrap-editable.min.js') }}"></script>

    <script src="{{ url_for('static',filename='js/effects.js') }}"></script>
{% endblock %}

{% block navbar %}

    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse"
                        data-target="#myNavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{{ url_for('home') }}">Taskr</a>
            </div>
            <div class="collapse navbar-collapse" id="myNavbar">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="{{ url_for('home') }}">Home</a></li>
                    <li>
                        <a href="{{ url_for('tasks') }}">Tasks</a>
                    </li>
                    {% if current_user.is_authenticated() and current_user.username == 'admin' %}
                        <li>
                            <a href="{{ url_for('manage') }}">Manage</a>
                        </li>
                    {% endif %}

                </ul>
                <ul class="nav navbar-nav navbar-right">
                    {% if current_user.is_authenticated() %}
                        <li><a href="{{ url_for('user', username = current_user.username) }}"><span
                                class="glyphicon glyphicon-user"></span> {{ current_user.username }}
                        </a>
                        </li>
                        <li><a href="{{ url_for('logout') }}"><span
                                class="glyphicon glyphicon-log-out"></span>
                            Logout</a></li>
                    {% else %}
                        <li><a href="{{ url_for('login') }}"><span
                                class="glyphicon glyphicon-log-in"></span> Login</a>
                        </li>
                    {% endif %}


                </ul>
            </div>
        </div>
    </nav>
{% endblock %}

{% block content %}
    {{ util.flashed_messages() }}
{% endblock %}