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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config.SITE_NAME }}{% if title %} — {{ title }}{% endif %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename = 'css/bootstrap.min.css') }}" type="text/css">
<link rel="stylesheet" href="{{ url_for('static', filename = 'css/style.css') }}" type="text/css">
{% block head %}
{% endblock %}
</head>
<body>
<nav class="navbar navbar-default navbar-inverse navbar-static-top">
<div id="container-fluid">
<div id="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<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="{{ url_for('.index') }}">{{ config.SITE_NAME }}</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{{ nav_html('.upload', 'Upload') }}
{% if current_user.is_authenticated %}
{{ nav_html('.files', 'Files') }}
{{ nav_html('.images', 'Images') }}
{{ nav_html('.account', 'Account') }}
{{ nav_html('.api', 'API') }}
{{ nav_html('.logout', 'Logout') }}
{% else %}
{{ nav_html('.login', 'Login') }}
{% endif %}
{# nav_html('.help', 'Help') #}
</ul>
</div>
</div>
</nav>
<div id="content" class="{% if fullwidth %}container-fluid{% else %}container{% endif %}">
{% if title %}
<div class="page-header">
<h1>
{{ title }}
{% if subtitle %}
<small>{{ subtitle }}</small>
{% endif %}
</h1>
</div>
{% endif %}
{% with messages = get_flashed_messages(with_categories = True) %}
{% for category, message in messages %}
<div class="alert alert-{{ {'error': 'danger', 'warning': 'warning', 'success': 'success'}.get(category, 'info') }}" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{ message }}
</div>
{% endfor %}
{% endwith %}
{% block content %}
{% endblock %}
</div>
<script src="{{ url_for('static', filename = 'js/jquery.min.js') }}"></script>
<script src="{{ url_for('static', filename = 'js/jquery.lazy.min.js') }}"></script>
<script src="{{ url_for('static', filename = 'js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('static', filename = 'js/bootstrap-filestyle.min.js') }}"></script>
{% block scripts %}
{% endblock %}
</body>
</html>
|