예제 #1
0
def start_page():
    text = get_config('root_text')
    if text is None:
        text = ""
    return render_template('index.html', text=text, is_admin=is_admin())
예제 #2
0
def view_rule():
    text = get_config('rule_text')
    if text is None:
        text = ""
    return render_template('rule.html',
                           text=text, is_admin=is_admin())