Split risk policy into its own navigation tab.

Move read-only risk control docs to /risk_policy before settings; keep transfers and exports on the settings page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 19:42:29 +08:00
parent fd6391b734
commit d84a265b67
14 changed files with 126 additions and 80 deletions
+6 -1
View File
@@ -64,12 +64,13 @@
{% if options_nav_visible %}
<a href="/options" class="{% if page == 'options' %}active{% endif %}">期权</a>
{% endif %}
<a href="/risk_policy" class="{% if page == 'risk_policy' %}active{% endif %}">风控说明</a>
<a href="/settings" class="{% if page == 'settings' %}active{% endif %}">系统设置</a>
</div>
{% with msg=get_flashed_messages() %}{% if msg %}<div class="flash">{{ msg[0] }}</div>{% endif %}{% endwith %}
{% include 'instance_header_panel.html' %}
{% if page != 'settings' and page != 'options' %}
{% if page not in ('settings', 'risk_policy', 'options') %}
{% include 'instance_top_bar.html' %}
{% endif %}
@@ -467,6 +468,10 @@
{% endif %}
</div>
{% if page == 'risk_policy' %}
{% include 'risk_policy_panel.html' %}
{% endif %}
{% if page == 'settings' %}
{% include 'settings_panel.html' %}
{% endif %}