summaryrefslogtreecommitdiff
path: root/fbin/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'fbin/templates/base.html')
-rw-r--r--fbin/templates/base.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/fbin/templates/base.html b/fbin/templates/base.html
new file mode 100644
index 0000000..bab0f7b
--- /dev/null
+++ b/fbin/templates/base.html
@@ -0,0 +1,70 @@
+<!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 %} &mdash; {{ 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('.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">&times;</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>