{% extends "_base.html" %} {% from "_macros.html" import avatar %} {#- 每局一张卡片,照 bf-manager 网页玩家页「对局」:左边色条和阵营旗帜标胜负,地图缩略图,下面是战绩和击杀最多的武器。 没有对局时插件回文字,不画这张图。 -#} {% block style %} .who { display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--panel); } .who h1 { margin: 2px 0 0; font-family: "Oswald", "SC", "WenQuanYi Zen Hei", sans-serif; font-size: 44px; line-height: 1.15; word-break: break-all; } .who h1 .tag { color: var(--muted); margin-right: 10px; } .kpis { display: grid; grid-template-columns: repeat(5, 1fr); margin: 2px 0 18px; padding: 16px 22px; background: var(--panel); border-top: 1px solid var(--line); } .kpi .v { font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 600; line-height: 1.2; } .kpi:first-child .v { color: var(--amber); } .rounds { display: flex; flex-direction: column; gap: 14px; } .round { position: relative; background: var(--panel); padding: 16px 20px 16px 28px; background-image: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); } .round::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--accent); } .top { display: flex; align-items: center; gap: 18px; } .side { width: 92px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; } .side img { width: 54px; height: 54px; object-fit: contain; } .side .nf { width: 54px; height: 54px; border: 2px dashed var(--line); } .side b { font-size: 18px; letter-spacing: .08em; color: var(--accent); white-space: nowrap; } .thumb { width: 176px; height: 99px; flex: none; object-fit: cover; background: rgba(255,255,255,.08); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); } .info { min-width: 0; flex: 1; } .map { font-size: 28px; font-weight: 700; line-height: 1.25; } .map small { margin-left: 10px; font-size: 18px; font-weight: 500; color: var(--amber-soft); } .meta, .server { margin-top: 4px; font-size: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kit { width: 84px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 17px; color: var(--muted); } .kit img { width: 46px; height: 46px; object-fit: contain; } .bottom { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .stat .v { font-family: "Oswald", sans-serif; font-size: 28px; font-weight: 500; line-height: 1.2; white-space: nowrap; } .stat:first-child .v { color: var(--text); font-weight: 700; } .gear { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); } .gun { min-width: 0; } .gun .pic { position: relative; height: 58px; padding-left: 56px; display: flex; align-items: center; justify-content: center; background: #6e6e74; } .gun img { max-width: 200px; max-height: 50px; object-fit: contain; } .gun .k { position: absolute; left: 0; top: 0; padding: 0 8px; background: rgba(0,0,0,.72); font-family: "Oswald", sans-serif; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--amber); } .gun .k small { margin-left: 3px; font-family: "SC", sans-serif; font-size: 17px; font-weight: 400; color: var(--soft); } .gun .n { margin-top: 6px; font-size: 18px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .note { margin-top: 8px; font-size: 17px; color: var(--amber-soft); } .hint { margin-top: 14px; font-size: 17px; color: var(--muted); text-align: center; } {% endblock %} {% block body %}
{{ avatar(avatar_url, false, 84) }}
Battlefield 1 · 最近对局

{% if tag %}[{{ tag }}]{% endif %}{{ name }}

{% for label, value in kpis %}
{{ label }}
{{ value }}
{% endfor %}
{% for r in rounds %}
{% if r.flag %}{% else %}
{% endif %} {{ r.outcome }}
{% if r.map_image %}{% else %}
{% endif %}
{{ r.map }}{% if r.mode %}{{ r.mode }}{% endif %}
{{ r.when }} · {{ r.minutes }} · {{ r.faction }}
{{ r.server }}
{% if r.portrait %}{% endif %}{{ r.kit }}
击杀 / 死亡
{{ r.kd }}
KD
{{ r.ratio }}
KPM
{{ r.kpm }}
SPM
{{ r.spm }}
{#- 武器在战绩下面单独一行:图上角标写击杀,名字在图下面单独一行 -#} {% if r.gear %}
{% for g in r.gear %}
{{ g.kills }}杀{% if g.image %}{% endif %}
{{ g.name }}
{% endfor %}
{% endif %}
{% if r.suspect %}
这一局的数据混进了相邻对局,仅供参考
{% endif %}
{% endfor %}
只含 bf-manager 跟踪到的对局,保留 90 天
{% endblock %}