summaryrefslogtreecommitdiff
path: root/pastepy/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'pastepy/templates/base.html')
-rw-r--r--pastepy/templates/base.html42
1 files changed, 26 insertions, 16 deletions
diff --git a/pastepy/templates/base.html b/pastepy/templates/base.html
index e208b6b..bd74a91 100644
--- a/pastepy/templates/base.html
+++ b/pastepy/templates/base.html
@@ -1,20 +1,30 @@
<!DOCTYPE html>
<html lang="en">
- <head>
- <title>{{ config.PASTEBIN_NAME }}{% if title %} &ndash; {{ title }}{% endif %}</title>
- <link rel="StyleSheet" href="{{ url_for('static', filename='paste.css') }}" type="text/css">
-{% block head %}
-{% endblock %}
- </head>
- <body>
- <div id="page">
- <div id="page-header">
- <h1><a href="/">{{ title }}</a></h1>
- </div>
- <div id="page-content">
-{% block content %}
-{% endblock %}
- </div>
+<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>
- </body>
+ </nav>
+ <div class="container{% if title != 'New paste' %}-fluid{% endif %}">
+ {% block content %}
+ {% endblock %}
+ </div>
+</div>
+</body>
</html>