public pages content
This commit is contained in:
Binary file not shown.
@@ -2157,12 +2157,19 @@ def init_routes(main_bp):
|
||||
@login_required
|
||||
@require_password_change
|
||||
def development_wiki():
|
||||
if not os.environ.get('MASTER', 'false').lower() == 'true':
|
||||
flash('This page is only available in master instances.', 'error')
|
||||
return redirect(url_for('main.dashboard'))
|
||||
|
||||
return render_template('wiki/base.html')
|
||||
|
||||
@main_bp.route('/support-articles')
|
||||
@login_required
|
||||
@require_password_change
|
||||
def support_articles():
|
||||
# Check if this is a master instance
|
||||
is_master = os.environ.get('MASTER', 'false').lower() == 'true'
|
||||
if not is_master:
|
||||
flash('This page is only available on the master instance.', 'error')
|
||||
return redirect(url_for('main.dashboard'))
|
||||
return render_template('admin/support_articles.html')
|
||||
|
||||
@main_bp.route('/api/version')
|
||||
def api_version():
|
||||
# Get version information from environment variables
|
||||
|
||||
@@ -23,11 +23,6 @@ def init_public_routes(public_bp):
|
||||
"""About page"""
|
||||
return render_template('public/about.html')
|
||||
|
||||
@public_bp.route('/blog')
|
||||
def blog():
|
||||
"""Blog page"""
|
||||
return render_template('public/blog.html')
|
||||
|
||||
@public_bp.route('/careers')
|
||||
def careers():
|
||||
"""Careers page"""
|
||||
@@ -68,12 +63,7 @@ def init_public_routes(public_bp):
|
||||
"""Terms of Service page"""
|
||||
return render_template('public/terms.html')
|
||||
|
||||
@public_bp.route('/gdpr')
|
||||
def gdpr():
|
||||
"""GDPR page"""
|
||||
return render_template('public/gdpr.html')
|
||||
|
||||
@public_bp.route('/compliance')
|
||||
def compliance():
|
||||
"""Compliance page"""
|
||||
return render_template('public/compliance.html')
|
||||
@public_bp.route('/cookies')
|
||||
def cookies():
|
||||
"""Cookie Policy page"""
|
||||
return render_template('public/cookies.html')
|
||||
Reference in New Issue
Block a user