Skip to content
Snippets Groups Projects
Commit 056eb1d5 authored by Andreas Valder's avatar Andreas Valder
Browse files

started schedule

parent 13f194d7
Branches
No related tags found
No related merge requests found
...@@ -285,5 +285,10 @@ def auth(): # For use with nginx auth_request ...@@ -285,5 +285,10 @@ def auth(): # For use with nginx auth_request
else: else:
return "Not allowed", 403 return "Not allowed", 403
@app.route('/schedule')
def schedule():
return render_template('schedule.html')
if __name__ == '__main__': if __name__ == '__main__':
app.run(threaded=True) app.run(threaded=True)
{% set navigation_bar = [ {% set navigation_bar = [
('/', 'index', 'Home', 'home'), ('/', 'index', 'Home', 'home', false),
('/videos', 'videos', 'Videos', 'film'), ('/videos', 'videos', 'Videos', 'film', false),
('/faq', 'faq', 'FAQ', 'question-sign') ('/faq', 'faq', 'FAQ', 'question-sign', false),
('/schedule', 'schedule', 'Drehplan', 'calendar', true)
] -%} ] -%}
{% set active_page = active_page|default('none') -%} {% set active_page = active_page|default('none') -%}
...@@ -53,10 +54,12 @@ ...@@ -53,10 +54,12 @@
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-8"> <div class="col-xs-12 col-sm-8">
<ul class="nav nav-pills"> <ul class="nav nav-pills">
{% for href, id, caption, gly in navigation_bar %} {% for href, id, caption, gly, modonly in navigation_bar %}
{% if (not modonly) or (modonly and ismod()) %}
<li{% if id == active_page %} class="active"{% endif %}> <li{% if id == active_page %} class="active"{% endif %}>
<a href="{{ href|e }}">{% if gly != '' %}<span class="glyphicon glyphicon-{{ gly }}"></span> {% endif %}{{ caption }}</a> <a href="{{ href|e }}">{% if gly != '' %}<span class="glyphicon glyphicon-{{ gly }}"></span> {% endif %}{{ caption }}</a>
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
<li class="navbar-right"> <li class="navbar-right">
{% if not ismod() %} {% 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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment