Fix composite margin ratio cap at 50% and add risk guide page with nav toggle.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 22:29:13 +08:00
parent 9a10ac8a51
commit 8b4b1a875c
14 changed files with 392 additions and 34 deletions
+4
View File
@@ -35,7 +35,11 @@
<div class="card dashboard-section dashboard-risk-card">
<h2 class="dashboard-risk-heading">
风控说明
{% if nav_items.risk_guide %}
<a class="dash-risk-doc-link" href="{{ url_for('risk_guide') }}">完整说明</a>
{% else %}
<span class="text-muted dash-risk-doc-ref">· 详见 <code>docs/风控说明.md</code></span>
{% endif %}
</h2>
<p class="dashboard-risk-reason" id="dash-risk-reason">加载中…</p>
<div class="stat-grid stat-grid-summary dashboard-risk-grid" id="dash-risk-grid"></div>