mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-21 22:58:20 +00:00
🐛 skip empty exploration - Chenyu
This commit is contained in:
parent
7c9a532369
commit
45ef16d53f
@ -71,6 +71,7 @@ class PlayerStatsPlugins(Plugin):
|
|||||||
"info": user_info.info,
|
"info": user_info.info,
|
||||||
"stats": user_info.stats,
|
"stats": user_info.stats,
|
||||||
"explorations": user_info.explorations,
|
"explorations": user_info.explorations,
|
||||||
|
"skip_explor": [10],
|
||||||
"teapot": user_info.teapot,
|
"teapot": user_info.teapot,
|
||||||
"stats_labels": [
|
"stats_labels": [
|
||||||
("活跃天数", "days_active"),
|
("活跃天数", "days_active"),
|
||||||
|
@ -43,20 +43,22 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<div class="p-6 grid grid-cols-4 gap-4 text-center text-neutral-100">
|
<div class="p-6 grid grid-cols-4 gap-4 text-center text-neutral-100">
|
||||||
{% for e in explorations %}
|
{% for e in explorations %}
|
||||||
<div
|
{% if e.id not in skip_explor %}
|
||||||
class="w-full flex flex-col items-center rounded-lg p-2 space-y-1 bg-cover"
|
<div
|
||||||
style="background-image: url('{{ e.cover }}');"
|
class="w-full flex flex-col items-center rounded-lg p-2 space-y-1 bg-cover"
|
||||||
>
|
style="background-image: url('{{ e.cover }}');"
|
||||||
<img class="w-3/5" src="{{ e.icon }}" />
|
>
|
||||||
<div class="text-sm w-full truncate">{{ e.name }}</div>
|
<img class="w-3/5" src="{{ e.icon }}" />
|
||||||
<div class="text-xs">{{ e.explored }}%</div>
|
<div class="text-sm w-full truncate">{{ e.name }}</div>
|
||||||
<div class="pointer-bar">
|
<div class="text-xs">{{ e.explored }}%</div>
|
||||||
<div
|
<div class="pointer-bar">
|
||||||
class="pointer-progress-bar"
|
<div
|
||||||
style="width: {{ e.explored }}%"
|
class="pointer-progress-bar"
|
||||||
></div>
|
style="width: {{ e.explored }}%"
|
||||||
</div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user