示例#1
0
文件: ge0n.py 项目: geoffclapp/ge0n
def pyfiglet_banner(banner_text="pyfiglet"):
    form = forms.BannerForm()
    a_banner = banner.render_banner(banner_text)
    if form.validate_on_submit():
        a_banner = banner.render_banner(form.banner_text.data)
        return render_template('pyfiglet_banner.html', form=form, a_banner=a_banner)
    return render_template('pyfiglet_banner.html', form=form, a_banner=a_banner)
示例#2
0
文件: ge0n.py 项目: geoffclapp/ge0n
def main_stream():
    banner_text = "-=-Message Stream-=-"
    a_banner = banner.render_banner(banner_text)
    all_posts = models.Post.select().limit(100)
    return render_template('message_board/main_stream.html', stream=all_posts, a_banner=a_banner)
示例#3
0
文件: ge0n.py 项目: geoffclapp/ge0n
def toma_time():
    banner_text = "-=Toma =-= Timer=-"
    a_banner = banner.render_banner(banner_text)

    return render_template('toma_time/toma_time.html', a_banner=a_banner)
示例#4
0
文件: ge0n.py 项目: geoffclapp/ge0n
def anonymous():
    banner_text = "ANONYMOUS"
    a_banner = banner.render_banner(banner_text)

    return render_template('auth/anonymous.html', a_banner=a_banner)