2010-07-15 19:25:23 +02:00
|
|
|
from flask import Module, render_template
|
2010-05-18 17:56:51 +02:00
|
|
|
from flask_website.twitter import flask_tweets
|
2010-07-15 19:25:23 +02:00
|
|
|
from flask_website.listings.projects import projects
|
2010-05-18 17:56:51 +02:00
|
|
|
|
2010-07-15 19:25:23 +02:00
|
|
|
mod = Module(__name__, url_prefix='/community')
|
2010-05-18 17:56:51 +02:00
|
|
|
|
2010-07-15 19:16:48 +02:00
|
|
|
|
2010-07-15 19:25:23 +02:00
|
|
|
@mod.route('/')
|
2010-05-18 17:56:51 +02:00
|
|
|
def index():
|
|
|
|
|
return render_template('community/index.html')
|
|
|
|
|
|
|
|
|
|
|
2010-07-15 19:25:23 +02:00
|
|
|
@mod.route('/irc/')
|
2010-05-18 17:56:51 +02:00
|
|
|
def irc():
|
|
|
|
|
return render_template('community/irc.html')
|
|
|
|
|
|
|
|
|
|
|
2010-07-15 19:25:23 +02:00
|
|
|
@mod.route('/twitter/')
|
2010-05-18 17:56:51 +02:00
|
|
|
def twitter():
|
|
|
|
|
return render_template('community/twitter.html', tweets=flask_tweets)
|
|
|
|
|
|
|
|
|
|
|
2010-07-15 19:25:23 +02:00
|
|
|
@mod.route('/badges/')
|
2010-05-18 17:56:51 +02:00
|
|
|
def badges():
|
|
|
|
|
return render_template('community/badges.html')
|
|
|
|
|
|
|
|
|
|
|
2010-07-15 19:25:23 +02:00
|
|
|
@mod.route('/poweredby/')
|
2010-07-15 19:16:48 +02:00
|
|
|
def poweredby():
|
|
|
|
|
return render_template('community/poweredby.html', projects=projects)
|
|
|
|
|
|
|
|
|
|
|
2010-07-15 19:25:23 +02:00
|
|
|
@mod.route('/logos/')
|
2010-05-18 17:56:51 +02:00
|
|
|
def logos():
|
|
|
|
|
return render_template('community/logos.html')
|