T14: penanda vote basi (last_vote dari rasio bobot/stake, filter ?stale=1, VEX_STALE_DAYS)

This commit is contained in:
proitlab committed 2026-08-04 17:05:16 +07:00
1 parent 2b95be3091
commit b0b3ba8ab3
10 files changed
+236 -52

No files matched your search

+21 -3
View File
@@ -36,6 +36,10 @@
<span class="cell-value">{{ top_staked|vex }}</span>
<span class="cell-label">STAKE TERTINGGI</span>
</div>
<div class="spec-cell">
<span class="cell-value">{{ stale_count }}</span>
<span class="cell-label">VOTE BASI</span>
</div>
</section>
<form class="search" method="get" action="{{ url_for('index') }}">
@@ -49,21 +53,34 @@
<p class="caption search-result" id="search-result">
{% if q %}HASIL · {{ filtered_count }} AKUN UNTUK "{{ q }}"{% endif %}
{% if stale %}HANYA VOTE BASI · {{ filtered_count }} AKUN{% endif %}
</p>
<div class="search-extra">
{% if not stale %}
<a class="clear" href="{{ url_for('index', stale=1) }}">TAMPILKAN VOTE BASI SAJA</a>
{% else %}
<a class="clear" href="{{ url_for('index') }}">SEMUA VOTER</a>
{% endif %}
</div>
<section class="spec-list" id="spec-list">
<div class="list-header">
<span>RANK</span>
<span>AKUN</span>
<span>STAKE (VEX)</span>
<span>VOTE TERAKHIR</span>
<span>BOBOT SUARA</span>
</div>
<div class="list-rows" id="rows">
{% for row in rows %}
<div class="list-row">
<div class="list-row {% if row[6] %}is-stale{% endif %}">
<span class="rank">{{ row[4] }}</span>
<span class="owner">{{ row[0] }}</span>
<span class="stake" data-label="STAKE (VEX)">{{ row[1]|vex }}</span>
<span class="vote-date" data-label="VOTE TERAKHIR">
{% if row[6] %}<span class="stale-mark">BASI</span>{% endif %}{{ row[5]|shortdate }}
</span>
<span class="weight" data-label="BOBOT SUARA">{{ row[2] }}</span>
</div>
{% else %}
@@ -76,11 +93,12 @@
<nav class="pager" id="pager" aria-label="Navigasi halaman">
{% set qp = q if q else None %}
{% set sp = '1' if stale else None %}
<a class="pill {% if page <= 1 %}pill-disabled{% endif %}"
href="{{ url_for('index', page=page-1, q=qp) }}">← SEBELUMNYA</a>
href="{{ url_for('index', page=page-1, q=qp, stale=sp) }}">← SEBELUMNYA</a>
<span class="page-count">{{ page }} / {{ total_pages }}</span>
<a class="pill {% if page >= total_pages %}pill-disabled{% endif %}"
href="{{ url_for('index', page=page+1, q=qp) }}">BERIKUTNYA →</a>
href="{{ url_for('index', page=page+1, q=qp, stale=sp) }}">BERIKUTNYA →</a>
</nav>
</main>