diff --git a/sipa/blueprints/features.py b/sipa/blueprints/features.py index 50ef10fb..a207e065 100644 --- a/sipa/blueprints/features.py +++ b/sipa/blueprints/features.py @@ -3,7 +3,8 @@ and does not fit into any other blueprint such as “documents”. """ -from flask import Blueprint, current_app, render_template +from flask import Blueprint, current_app, render_template, render_template_string + from sipa.utils import get_bustimes, meetingcal bp_features = Blueprint('features', __name__) @@ -33,3 +34,14 @@ def bustimes(stopname=None): def render_meetingcal(): meetings = meetingcal() return render_template('meetingcal.html', meetings=meetings) + + +@bp_features.route("/meetings") +def meetings(): + return render_template_string( + """ + {%- from "macros/meetingcal.html" import render_meetingcal -%} + {{- render_meetingcal(meetingcal) -}} + """, + meetingcal=meetingcal(), + ) diff --git a/sipa/templates/base.html b/sipa/templates/base.html index c073a99a..e0a9ae64 100644 --- a/sipa/templates/base.html +++ b/sipa/templates/base.html @@ -425,7 +425,16 @@


- +