Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b421945b16 | |||
| 6eb312451b | |||
| 9c00e167f6 | |||
| 5ca5df72b6 |
@@ -10,7 +10,7 @@
|
|||||||
.tab-btn {
|
.tab-btn {
|
||||||
padding: 10px 20px; border: none; background: none;
|
padding: 10px 20px; border: none; background: none;
|
||||||
font-size: 0.88rem; font-weight: 500; color: var(--sub);
|
font-size: 0.88rem; font-weight: 500; color: var(--sub);
|
||||||
cursor: pointer; border-bottom: 2px solid transparent;
|
cursor: pointer; text-decoration: none; border-bottom: 2px solid transparent;
|
||||||
margin-bottom: -2px; transition: color .12s, border-color .12s;
|
margin-bottom: -2px; transition: color .12s, border-color .12s;
|
||||||
}
|
}
|
||||||
.tab-btn:hover { color: var(--fg); }
|
.tab-btn:hover { color: var(--fg); }
|
||||||
@@ -157,10 +157,16 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# ── Contract tables per product ── #}
|
{# ── Product tabs for contract list ── #}
|
||||||
|
{% set ctab = request.query_params.get('ctab', products[0].code if products else '') %}
|
||||||
|
<div class="tabs" style="margin-top:24px;">
|
||||||
{% for p in products %}
|
{% for p in products %}
|
||||||
{% if p.contracts %}
|
<a href="/admin/?tab=contract&ctab={{ p.code }}" class="tab-btn{% if ctab == p.code %} active{% endif %}">{{ p.code }} · {{ p.name }}</a>
|
||||||
<div class="section-title" style="margin-top:{% if not loop.first %}24px{% else %}0{% endif %};">{{ p.code }} · {{ p.name }}</div>
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% for p in products %}
|
||||||
|
{% if p.code == ctab and p.contracts %}
|
||||||
<div class="table-wrap" style="margin-bottom:20px;">
|
<div class="table-wrap" style="margin-bottom:20px;">
|
||||||
<table>
|
<table>
|
||||||
<tr><th>合约代码</th><th>月份</th><th>状态</th><th>操作</th></tr>
|
<tr><th>合约代码</th><th>月份</th><th>状态</th><th>操作</th></tr>
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
<td style="color:var(--sub);">{{ row.rank }}</td>
|
<td style="color:var(--sub);">{{ row.rank }}</td>
|
||||||
<td style="text-align:left;">{{ row.institution }}</td>
|
<td style="text-align:left;">{{ row.institution }}</td>
|
||||||
<td>{{ row.value }}</td>
|
<td>{{ row.value }}</td>
|
||||||
<td style="color:{% if row.change > 0 %}var(--success-fg){% elif row.change < 0 %}var(--danger-fg){% else %}var(--sub){% endif %};">
|
<td style="color:{% if row.change > 0 %}var(--danger-fg){% elif row.change < 0 %}var(--success-fg){% else %}var(--sub){% endif %};">
|
||||||
{% if row.change > 0 %}+{% endif %}{{ row.change }}
|
{% if row.change > 0 %}+{% endif %}{{ row.change }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user