Allow displaying event details

This commit is contained in:
2018-07-03 14:22:03 +02:00
parent bba44a3c7f
commit ba7c766316
3 changed files with 32 additions and 3 deletions

View File

@@ -204,5 +204,17 @@ class CalendarSocialApp(Flask):
return render_template('user-settings.html', form=form)
@staticmethod
@route('/event/<int:event_id>')
def event_details(event_id):
"""View to display event details
"""
from .models import Event
event = Event.query.get_or_404(event_id)
return render_template('event-details.html', event=event)
app = CalendarSocialApp(__name__)