{% extends "_base.html" %} {% from "_macros.html" import avatar, ribbon %} {#- 照 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; } .who .main { flex: 1; min-width: 0; } .worn { display: flex; gap: 22px; } .worn .t { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; text-align: center; font-size: 16px; color: var(--soft); } .worn img { width: 104px; height: 104px; border-radius: 50%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); } .counts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2px; padding: 16px 22px; background: var(--panel); border-top: 1px solid var(--line); } .counts .v { font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 600; line-height: 1.2; } .counts .v small { font-size: 20px; color: var(--muted); font-weight: 400; margin-left: 4px; } section.panel { margin-top: 18px; } .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; } .col > :first-child { margin-top: 0; } .group + .group { margin-top: 16px; } .group .gt { margin-bottom: 8px; font-size: 16px; color: var(--muted); } .medals { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; } .medal { position: relative; } .medal img { width: 100%; aspect-ratio: 1; object-fit: contain; } .off img { opacity: .25; filter: grayscale(1); } .medal .p { position: absolute; right: 0; top: 0; padding: 0 5px; background: rgba(0,0,0,.75); font-family: "Oswald", sans-serif; font-size: 16px; line-height: 22px; color: var(--amber-soft); } .tags { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; } .tag img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; } .tag .bar { height: 3px; margin: 3px 4px 0; background: rgba(255,255,255,.1); } .tag .bar i { display: block; height: 100%; background: rgba(251,191,36,.7); } .rbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; } .rb { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--soft); } .rb.off { opacity: .3; filter: grayscale(1); } .rb .d { font-size: 18px; } {% endblock %} {% block body %}
{{ avatar(avatar_url, false, 84) }}
Battlefield 1 · 收藏

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

{% if equipped %}
{% for t in equipped %}
{{ t.name }}
{% endfor %}
{% endif %}
勋章
{{ medals_got }}/ {{ medals_total }}
狗牌
{{ dogtags_got }}/ {{ dogtags_total }}
{% if ribbons %}
勋带种类
{{ ribbons_got }}/ {{ ribbons_total }}
勋带总数
{{ "{:,}".format(ribbons_sum) }}
{% endif %}
{#- 左栏勋章和勋带,右栏狗牌:狗牌三百多块,单独占一栏 -#}
勋章没拿到的置灰,角上是已完成的阶段
{% for category, items in medals %}
{{ category }}
{% for m in items %}
{% if m.progress %}{{ m.progress }}{% endif %}
{% endfor %}
{% endfor %}
{% if ribbons %}
勋带生涯里各拿过几次
{% for category, items in ribbons %}
{{ category }}
{% for r in items %}
{{ ribbon(r.image, 26) }}{% if r.count %}×{{ "{:,}".format(r.count) }}{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
狗牌没拿到的置灰,下面的细条是解锁进度
{% for category, items in dogtags %}
{{ category }}
{% for t in items %}
{% if t.progress %}
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %}