{% extends "base.html" %} {% from "_season_import.html" import import_box, import_script with context %} {% block title %}赛季 · Evo{% endblock %} {# "赛季"页面(panel_seasons.py,2026-11-01 用户选的单独一页):录入模式、待核对、保存过的历史赛季 #} {% set here = url_for('seasons.page', kind=None if kind == 'all' else kind) %} {# 15 个数的输入框(三行五列)。对不上的格子:黄框、aria-invalid,读屏软件念到时连着念原因;约数在名字后面标"约" #} {% macro number_form(c, next) %}
{% for line in c.cells %}{% for cell in line %} {% endfor %}{% endfor %}
{% endmacro %} {% macro delete_form(c, next) %}
{% endmacro %} {% macro pct(x) %}{{ '—' if x is none else '%.1f%%' | format(x) }}{% endmacro %} {% macro dec(x) %}{{ '—' if x is none else '%.2f' | format(x) }}{% endmacro %} {% macro whole(x) %}{{ '—' if x is none else '{:,.0f}'.format(x) }}{% endmacro %} {% block content %}
{{ import_box(mode, here) }}
{% if pending %}

待核对 {{ pending | length }}

和游戏里对一下:对不上的格子标了黄框,原因写在上面。改好点"保存";不是你的、或者读错了就删除。

{% for c in pending %}

{{ c.title }}

{{ c.player }} · 读于 {{ c.read_at }}
{% if c.issues %}
    {% for i in c.issues %}
  • {{ i.text }}
  • {% endfor %}
{% endif %} {{ number_form(c, here) }}
{{ delete_form(c, here) }}
{% endfor %}
{% endif %}

历史赛季

{% if not saved_count %}

还没有保存过历史赛季。{{ '核对好上面的,点"保存"就会出现在这里。' if pending else '点上面的"开始录入",然后在游戏里打开数据页。' }}

{% elif not shown and not (career and kind == 'all') %}

还没有保存过{{ '排位' if kind == 'ranked' else '"全部"' }}的赛季。

{% else %}
{% set rows = ([career] if career and kind == 'all' else []) + shown %} {% for r in rows %} {% set is_open = detail and detail.id == r.id %} {% if is_open %} {% set back = url_for('seasons.page', kind=None if kind == 'all' else kind, open=r.id) %} {% endif %} {% endfor %}
赛季 局数 胜率 前 5 率 场均击杀 击杀/阵亡比 场均伤害 详情
{{ r.title }} {{ whole(r.games) }} {{ pct(r.win_rate) }} {{ pct(r.top5_rate) }}{% if r.approx_top5 %} 约{% endif %} {{ dec(r.kills_per_game) }} {{ dec(r.kd) }} {{ whole(r.damage_avg) }} {{ '收起' if is_open else '全部 15 项' }}

{{ detail.player }} · 读于 {{ detail.read_at }}{{ ' · 改过' if detail.edited }}

{% if detail.issues %}
    {% for i in detail.issues %}
  • {{ i.text }}
  • {% endfor %}
{% endif %} {{ number_form(detail, back) }}
{{ delete_form(detail, here) }}
{% if players | length > 1 %}

这里有 {{ players | join('、') }} 几个名字的数据

{% endif %} {% endif %}
{% endblock %} {% block scripts %} {{ import_script() }} {% endblock %}