public pages content

This commit is contained in:
2025-06-24 09:32:50 +02:00
parent 10560a01fb
commit fed00ff2a0
21 changed files with 2897 additions and 1010 deletions

View File

@@ -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