Separate bricktracker sets from rebrickable sets (dedup), introduce custom checkboxes
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
</div>
|
||||
<div class="accordion accordion-flush" id="instructions">
|
||||
{{ accordion.header('Instructions danger zone', 'instructions-delete', 'instructions', expanded=true, danger=true) }}
|
||||
{% if item.brickset %}
|
||||
{% if item.rebrickable %}
|
||||
<div class="d-flex justify-content-center">
|
||||
{% with item=item.brickset %}
|
||||
{% with item=item.rebrickable %}
|
||||
{% include 'set/mini.html' %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
</div>
|
||||
<div class="accordion accordion-flush" id="instructions">
|
||||
{{ accordion.header('Management', 'instructions-rename', 'instructions', expanded=true) }}
|
||||
{% if item.brickset %}
|
||||
{% if item.rebrickable %}
|
||||
<div class="d-flex justify-content-center">
|
||||
{% with item=item.brickset %}
|
||||
{% with item=item.rebrickable %}
|
||||
{% include 'set/mini.html' %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
|
||||
@@ -27,11 +27,11 @@
|
||||
<span class="badge rounded-pill text-bg-light border fw-normal"><i class="ri-calendar-line"></i> {{ item.human_time() }}</span>
|
||||
</td>
|
||||
<td>
|
||||
{% if item.number %}<span class="badge text-bg-secondary fw-normal"><i class="ri-hashtag"></i> {{ item.number }}</span>{% endif %}
|
||||
{% if item.brickset %}{{ item.brickset.fields.name }}{% endif %}
|
||||
{% if item.set %}<span class="badge text-bg-secondary fw-normal"><i class="ri-hashtag"></i> {{ item.set }}</span>{% endif %}
|
||||
{% if item.rebrickable %}{{ item.rebrickable.fields.name }}{% endif %}
|
||||
</td>
|
||||
{% if item.brickset %}
|
||||
{{ table.image(item.brickset.url_for_image(), caption=item.brickset.fields.name, alt=item.brickset.fields.set_num) }}
|
||||
{% if item.rebrickable %}
|
||||
{{ table.image(item.rebrickable.url_for_image(), caption=item.rebrickable.fields.name, alt=item.rebrickable.fields.set) }}
|
||||
{% else %}
|
||||
<td><i class="ri-file-warning-line"></i></td>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user