summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-09-04 15:00:04 +0000
committerpad <pad@vm-pad-b.spline.inf.fu-berlin.de>2013-09-04 15:00:04 +0000
commit35b6111b78f61ee74c85d7cab4f6c6a61265d0f7 (patch)
tree73d99bbc63f8a6b85dc72878331882792345890b
parent970d7a1cf63806c0912759bcc435dab0225aac4f (diff)
downloadpadlite-teams-35b6111b78f61ee74c85d7cab4f6c6a61265d0f7.tar.gz
padlite-teams-35b6111b78f61ee74c85d7cab4f6c6a61265d0f7.tar.bz2
padlite-teams-35b6111b78f61ee74c85d7cab4f6c6a61265d0f7.zip
template: add bootstrap base layout
-rw-r--r--templates/layout.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/layout.html b/templates/layout.html
new file mode 100644
index 0000000..a495b07
--- /dev/null
+++ b/templates/layout.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Padlite Teams</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <!-- Bootstrap -->
+ <link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet" media="screen">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="{{ url_for('static', filename='js/html5shiv.js') }}"></script>
+ <script src="{{ url_for('static', filename='js/respond.min.js') }}"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+ <div class="page-header">
+ <h1>{% block head %}{% endblock %}</h1>
+ </div>
+
+ <ol class="breadcrumb">
+ <li{% if not group %} class="active"{% endif %}>
+ {% if group %}<a href="{{ url_for('index') }}">{% endif %}
+ Home
+ {% if group %}</a>{% endif %}
+ </li>
+ {% if group %}
+ <li class="active">{{group}}</li>
+ {% endif %}
+ </ol>
+
+
+ {% for categorie, message in get_flashed_messages(with_categories=true) %}
+ {% if categorie == 'message' %}
+ <div class="alert alert-danger">{{ message }}</div>
+ {% else %}
+ <div class="alert alert-{{categorie}}">{{ message }}</div>
+ {% endif %}
+ {% endfor %}
+
+ {% block content %}{% endblock %}
+
+ <script src="{{ url_for('static', filename='js/jquery.js') }}"></script>
+ <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
+ </div>
+ </body>
+</html>