nopaque/app/workshops/routes.py

19 lines
566 B
Python
Raw Normal View History

from flask import redirect, render_template, url_for
from flask_breadcrumbs import register_breadcrumb
2023-07-25 13:18:57 +00:00
from . import bp
@bp.route('')
@register_breadcrumb(bp, '.', '<i class="material-icons left">business_center</i>Workshops')
def workshops():
return redirect(url_for('main.dashboard'))
2023-07-25 13:18:57 +00:00
@bp.route('/fgho_sommerschule_2023')
@register_breadcrumb(bp, '.fgho_sommerschule_2023', 'FGHO Sommerschule 2023')
def fgho_sommerschule_2023():
2023-07-25 13:18:57 +00:00
return render_template(
'workshops/fgho_sommerschule_2023.html.j2',
title='FGHO Sommerschule 2023',
)