2dcb191c2f
Co-authored-by: Cursor <cursoragent@cursor.com>
68 lines
4.0 KiB
HTML
68 lines
4.0 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
|
|
<meta name="theme-color" content="#070b14">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-title" content="期权中控">
|
|
<link rel="icon" href="{{ url_for('static', filename='icons/favicon.ico') }}?v=2" sizes="any">
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='icons/apple-touch-icon.png') }}?v=2">
|
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=38">
|
|
</head>
|
|
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path.startswith('/settings') %}page-settings{% elif request.path.startswith('/cond_orders') %}page-cond-orders{% elif request.path == '/' %}page-dashboard{% endif %}">
|
|
{% if session.get('logged_in') %}
|
|
<a href="/logout" class="topbar-logout">退出</a>
|
|
{% endif %}
|
|
<main class="main">
|
|
{% if session.get('logged_in') %}
|
|
<a href="/" class="topbar-brand">加密货币|OKX 期权中控</a>
|
|
<div class="topbar-row">
|
|
<nav class="topbar-nav">
|
|
<a href="/" class="{% if request.path == '/' %}active{% endif %}">总览</a>
|
|
<a href="/cond_orders" class="{% if request.path.startswith('/cond_orders') %}active{% endif %}">条件单</a>
|
|
<a href="/instances" class="{% if request.path.startswith('/instances') %}active{% endif %}">实例</a>
|
|
<a href="/desk" class="{% if request.path.startswith('/desk') %}active{% endif %}">工作台</a>
|
|
<a href="/stats" class="{% if request.path.startswith('/stats') %}active{% endif %}">数据统计</a>
|
|
<a href="/settings" class="{% if request.path.startswith('/settings') %}active{% endif %}">系统设置</a>
|
|
</nav>
|
|
<div class="top-nav-spot-tickers" id="nav-spot-tickers" aria-label="BTC ETH 报价" title="来自在线客户端 · 相对北京 08:00">
|
|
<div class="nav-spot-row" data-base="ETH">
|
|
<span class="nav-spot-ribbon" aria-hidden="true"></span>
|
|
<span class="nav-spot-icon nav-spot-icon--eth" aria-hidden="true">Ξ</span>
|
|
<span class="nav-spot-sym">ETHUSDT</span>
|
|
<span class="nav-spot-last" data-field="last">—</span>
|
|
<span class="nav-spot-chg" data-field="change">—</span>
|
|
<span class="nav-spot-pct" data-field="change_pct">—</span>
|
|
</div>
|
|
<div class="nav-spot-row" data-base="BTC">
|
|
<span class="nav-spot-ribbon" aria-hidden="true"></span>
|
|
<span class="nav-spot-icon nav-spot-icon--btc" aria-hidden="true">₿</span>
|
|
<span class="nav-spot-sym">BTCUSDT</span>
|
|
<span class="nav-spot-last" data-field="last">—</span>
|
|
<span class="nav-spot-chg" data-field="change">—</span>
|
|
<span class="nav-spot-pct" data-field="change_pct">—</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}<div class="flash">{{ messages[0] }}</div>{% endif %}
|
|
{% endwith %}
|
|
{% block body %}{% endblock %}
|
|
</main>
|
|
{% if session.get('logged_in') and not request.path.startswith('/desk') %}
|
|
<script src="{{ url_for('static', filename='hub_quotes.js') }}?v=1"></script>
|
|
{% endif %}
|
|
{% block scripts %}{% endblock %}
|
|
{% if session.get('logged_in') and not request.path.startswith('/desk') %}
|
|
<script>if (window.HubQuotes) HubQuotes.boot();</script>
|
|
{% endif %}
|
|
<script src="{{ url_for('static', filename='hub_pwa.js') }}?v=2"></script>
|
|
<script>if (window.HubPwa) HubPwa.boot();</script>
|
|
</body>
|
|
</html>
|