def casual(): if request.args.get('t'): return render_template('casual/index.html', path=request.path, posts=mongo.db.casual.find( {'topic': request.args.get('t')}), topics=topics(), topic=request.args.get('t')) return render_template('casual/index.html', path=request.path, posts=mongo.db.casual.find({}), topics=topics(), topic='')
def postActivism(objectID): return render_template('activism/post.html', path=request.path, post=mongo.db.activism.find_one_or_404( {'_id': ObjectId(objectID)}), topics=topics())
def createActivism(): return render_template('activism/create.html', path=request.path, schools=schools(), topics=topics(), school=request.cookies.get('school'))
def activism(): return render_template('activism/index.html', path=request.path, posts=mongo.db.activism.find({}), topics=topics())
def flashresources(): return render_template('resources.html', resources=resources(), path=request.path, topics=topics())
def index(): return render_template('index.html', path=request.path, topics=topics())
def postCasual(objectID): return render_template('casual/post.html', post=mongo.db.casual.find_one_or_404( {'_id': ObjectId(objectID)}), path=request.path, topics=topics())
def createCasual(): return render_template('casual/create.html', path=request.path, schools=schools(), topics=topics(), school=request.cookies.get('school'))