add summary
This commit is contained in:
@@ -15,6 +15,22 @@
|
||||
<a class="button button-primary" href="/boxes/new">新建箱子</a>
|
||||
</div>
|
||||
|
||||
<section class="stack summary-section">
|
||||
<div class="section-heading">
|
||||
<h2>当前概览</h2>
|
||||
<p class="muted">快速查看当前装箱记录的核心统计。</p>
|
||||
</div>
|
||||
<section class="card summary-block">
|
||||
<ul class="summary-list">
|
||||
<li><strong>箱子总数:</strong>{{ summary.box_count }}</li>
|
||||
<li><strong>物品总数(不含子物品):</strong>{{ summary.item_count }}</li>
|
||||
<li><strong>物品总数(含子物品):</strong>{{ summary.item_and_subitem_count }}</li>
|
||||
<li><strong>平均每箱物品数:</strong>{{ summary.avg_items_per_box }}</li>
|
||||
<li><strong>平均每个容器型 Item 的子物品数:</strong>{{ summary.avg_subitems_per_container_item }}</li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
{% if boxes %}
|
||||
<div class="overview-grid">
|
||||
{% for box in boxes %}
|
||||
|
||||
Reference in New Issue
Block a user