EE-status-v3/templates/base.html

132 lines
3.5 KiB
HTML
Raw Normal View History

{% if "X-PJAX" not in request.headers %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
{% block title %}
<title>classifier.een.cloud</title>
{% endblock %}
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="//cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<link href="/static/dataTables.bootstrap4.min.css">
<!-- Custom styles for this template -->
<!-- <link href="album.css" rel="stylesheet">
<link href="custom.css" rel="stylesheet"> -->
<link href="/static/style.css" rel="stylesheet">
<!-- self-hosted fontawesome -->
<link href="/static/css/all.css" rel="stylesheet">
{% block style %}
{% endblock %}
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item active">
<a href="/" class="navbar-brand d-flex align-items-center">
<strong><small>status</small>.mcotton.space</strong>
</a>
</li>
</ul>
<span class="navbar-text">
{% block current_user %}
{% endblock %}
</span>
</form>
</div>
</nav>
</header>
<main role="main">
{% endif %}
{% block main %}
{% endblock %}
{% if "X-PJAX" not in request.headers %}
</main>
<footer class="text-muted">
<div class="container">
<p class="float-right">
</p>
<p></p>
</div>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script src="//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
<script src="/static/js/jquery.pjax.js"></script>
<script>
$(document).ready(function() {
$('#user_mode_toggle').on('click', function(event) {
event.stopPropagation();
$.ajax({
type: "POST",
url: '/api/v1/user_mode/toggle',
dataType: "text",
contentType : 'application/json',
success: function(data) {
//$('#labelModal-add').text('Saved');
//$('#labelModal').modal('hide');
location.reload();
},
error: function(data) {
console.log(data)
$('#labelModal-add').text('Failed');
//$('#labelModal').modal('hide');
//location.reload();
}
});
});
});
</script>
{% block script %}
{% endblock%}
</body>
</html>
{% endif %}