summaryrefslogtreecommitdiff
path: root/fbin/templates/base.html
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-04-09 09:02:09 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2017-04-09 09:02:09 +0200
commitb36f9c05071ea549ed59e703270fcf223b60df03 (patch)
tree8992c6bcaa5b0d64cbd589588b2539523125548c /fbin/templates/base.html
parentaf750a6598d53b8a5cb58092dd5b523ea7e967ca (diff)
Major rewrite to use jab/oauth.
Highlights: - Uses the oauth branch of jab. - Changed design to use bootstrap. - Some minor changes to functionality in file uploading and listing. - API is currently disabled and incomplete.
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>