forked from gergely/calendar-social
Allow displaying event details
This commit is contained in:
@@ -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__)
|
||||
|
Reference in New Issue
Block a user