mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 00:50:40 +00:00
Use enums where appropriate. This commit includes new migrations that are NOT compatible with older nopaque instances
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
from app.auth.forms import LoginForm
|
||||
from app.models import User
|
||||
from flask import flash, redirect, render_template, url_for
|
||||
from flask_login import login_required, login_user
|
||||
from . import bp
|
||||
from ..auth.forms import LoginForm
|
||||
from ..models import User
|
||||
|
||||
|
||||
@bp.route('/', methods=['GET', 'POST'])
|
||||
@ -21,8 +21,10 @@ def index():
|
||||
|
||||
@bp.route('/faq')
|
||||
def faq():
|
||||
return render_template('main/faq.html.j2',
|
||||
title='Frequently Asked Questions')
|
||||
return render_template(
|
||||
'main/faq.html.j2',
|
||||
title='Frequently Asked Questions'
|
||||
)
|
||||
|
||||
|
||||
@bp.route('/dashboard')
|
||||
@ -38,8 +40,10 @@ def news():
|
||||
|
||||
@bp.route('/privacy_policy')
|
||||
def privacy_policy():
|
||||
return render_template('main/privacy_policy.html.j2',
|
||||
title='Privacy statement (GDPR)')
|
||||
return render_template(
|
||||
'main/privacy_policy.html.j2',
|
||||
title='Privacy statement (GDPR)'
|
||||
)
|
||||
|
||||
|
||||
@bp.route('/terms_of_use')
|
||||
|
Reference in New Issue
Block a user