summaryrefslogtreecommitdiff
path: root/pastepy/templates/base.html
blob: bd74a912a9e32ead171e91d0d36431274d10bb85 (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
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<title>{{ config.PASTEBIN_NAME }}{% if title %} &ndash; {{ title }}{% endif %}</title>
	<link rel="StyleSheet" href="{{ url_for('static', filename='css/bootstrap.flatly.min.css') }}" type="text/css" id="bootstrap-css">
	<link rel="StyleSheet" href="{{ url_for('static', filename='css/paste.css') }}" type="text/css" id="pastepy-css">
	<script src="{{ url_for('static', filename='js/theme.js') }}" type="text/javascript"></script>
	{% block head %}
	{% endblock %}
</head>
<body>
	<nav class="navbar navbar-expand-lg navbar-light bg-light">
		<a class="navbar-brand" href="/">{{ config.PASTEBIN_NAME }}</a>
		<div class="collapse navbar-collapse" id="navbar-dropdown">
		{% block nav %}
		{% endblock %}
		<span class="navbar-text">
			<button class="btn btn-sm btn-light" onclick="switch_theme(event)" id="theme-button">Switch theme</button>
		</span>
		</div>
	</nav>
	<div class="container{% if title != 'New paste' %}-fluid{% endif %}">
		{% block content %}
		{% endblock %}
	</div>
</div>
</body>
</html>