forked from christabor/flask_jsondash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
51 lines (51 loc) · 1.86 KB
/
base.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
{% block title %}
My app | {% block jsondash_title %}{% endblock %}
{% endblock %}
</title>
<!-- VENDOR CSS -->
<link rel="stylesheet" href="{{ url_for('static', filename='css/vendor/bootstrap.min.css') }}">
{% block jsondash_css %}{% endblock %}
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="well text-center">
<h4><strong>Flask JSONDASH example app.</strong> <br><small>A place to demonstrate how to use the blueprint.</small></h4>
</div>
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for category, message in get_flashed_messages(with_categories=True) %}
<div class="alert alert-{{ 'danger' if category == 'error' else 'info' }}">
<p class="flash">{{ 'Error: ' if category == 'error' else '' }}{{ message }}</p>
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block jsondash_body %}{% endblock %}
</div>
</div>
</div>
<!-- VENDOR JS -->
<script src="{{ url_for('static', filename='js/vendor/jquery.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/vendor/bootstrap.min.js') }}"></script>
{% block jsondash_scripts %}{% endblock %}
{% block jsondash_init %}{% endblock %}
{% block jsondash_api_scripts %}
{#
<script>
$(document).ready(function(){
if(!window.jsondash) return;
jsondash.api.registerCallback('chart-id-here', function(container, config, myargs){
}, ['Hello world']);
});
</script>
#}
{% endblock %}
</body>
</html>