Prepare meetings_index() for pagination

This commit is contained in:
str4d
2012-12-14 05:18:40 +00:00
parent 791cffb2e9
commit 8b608ea750

View File

@@ -265,7 +265,8 @@ def render_meeting_rst(id):
# Meeting index
@app.route('/<string:lang>/meetings/')
def meetings_index():
@app.route('/<string:lang>/meetings/page/<int:page>')
def meetings_index(page=0):
meetings = get_meetings()
return render_template('meetings/index.html', meetings=meetings)