Beispiel #1
0
def index():
    notices_list = db_session.query(NoticeModel).all()
    events_list = db_session.query(EventModel).all()
    return render_template('dashboard/index.html',
                           notices=notices_list,
                           events=events_list)
Beispiel #2
0
def event_detail(event_id):
    event = db_session.query(EventModel).filter_by(id=event_id).first()
    if event:
        return render_template('dashboard/event_detail.html', event=event)
    return abort(404)
Beispiel #3
0
def notice_detail(notice_id):
    notice = db_session.query(NoticeModel).filter_by(id=notice_id).first()
    if notice:
        return render_template('dashboard/notice_detail.html', notice=notice)
    return abort(404)
Beispiel #4
0
def events():
    events_list = db_session.query(EventModel).all()
    return render_template('dashboard/events.html', events=events_list)
Beispiel #5
0
def notices():
    notices_list = db_session.query(NoticeModel).all()
    return render_template('dashboard/notices.html', notices=notices_list)