Commit 056eb1d5 authored by Andreas Valder's avatar Andreas Valder

started schedule

parent 13f194d7
......@@ -285,5 +285,10 @@ def auth(): # For use with nginx auth_request
else:
return "Not allowed", 403
@app.route('/schedule')
def schedule():
return render_template('schedule.html')
if __name__ == '__main__':
app.run(threaded=True)
{% set navigation_bar = [
('/', 'index', 'Home', 'home'),
('/videos', 'videos', 'Videos', 'film'),
('/faq', 'faq', 'FAQ', 'question-sign')
('/', 'index', 'Home', 'home', false),
('/videos', 'videos', 'Videos', 'film', false),
('/faq', 'faq', 'FAQ', 'question-sign', false),
('/schedule', 'schedule', 'Drehplan', 'calendar', true)
] -%}
{% set active_page = active_page|default('none') -%}
......@@ -53,10 +54,12 @@
<div class="row">
<div class="col-xs-12 col-sm-8">
<ul class="nav nav-pills">
{% for href, id, caption, gly in navigation_bar %}
<li{% if id == active_page %} class="active"{% endif %}>
<a href="{{ href|e }}">{% if gly != '' %}<span class="glyphicon glyphicon-{{ gly }}"></span> {% endif %}{{ caption }}</a>
</li>
{% for href, id, caption, gly, modonly in navigation_bar %}
{% if (not modonly) or (modonly and ismod()) %}
<li{% if id == active_page %} class="active"{% endif %}>
<a href="{{ href|e }}">{% if gly != '' %}<span class="glyphicon glyphicon-{{ gly }}"></span> {% endif %}{{ caption }}</a>
</li>
{% endif %}
{% endfor %}
<li class="navbar-right">
{% if not ismod() %}
......
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% set active_page = "schedule" %}
{% block content %}
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title">Drehplan</h1>
</div>
<div>
</div>
</div>
</div>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment