Add Rebrickable badge to wishlist page

This commit is contained in:
Matthew Bowker 2025-01-21 13:43:55 -07:00
parent 3712356caa
commit f53c73268f

View File

@ -1,4 +1,5 @@
{% import 'macro/table.html' as table %} {% import 'macro/table.html' as table %}
{% import 'macro/badge.html' as badge %}
<div class="table-responsive-sm"> <div class="table-responsive-sm">
<table class="table table-striped align-middle" id="wish"> <table class="table table-striped align-middle" id="wish">
@ -21,7 +22,8 @@
{% set retirement_date = retired.get(item.fields.set_num) %} {% set retirement_date = retired.get(item.fields.set_num) %}
<tr> <tr>
{{ table.image(item.url_for_image(), caption=item.fields.name, alt=item.fields.set_num) }} {{ table.image(item.url_for_image(), caption=item.fields.name, alt=item.fields.set_num) }}
<td>{{ item.fields.set_num }}</td> <td>{{ item.fields.set_num }}<br />
{{ badge.rebrickable(item) }}</td>
<td>{{ item.fields.name }}</td> <td>{{ item.fields.name }}</td>
<td>{{ item.theme_name }}</td> <td>{{ item.theme_name }}</td>
<td>{{ item.fields.year }}</td> <td>{{ item.fields.year }}</td>