diff --git a/templates/wish/table.html b/templates/wish/table.html index 73a5eb8..3b03782 100644 --- a/templates/wish/table.html +++ b/templates/wish/table.html @@ -19,23 +19,24 @@ {% for item in table_collection %} - {% set retirement_date = retired.get(item.fields.set) %} - - {{ table.image(item.url_for_image(), caption=item.fields.name, alt=item.fields.set) }} - {{ item.fields.set }} {{ table.rebrickable(item) }} - {{ item.fields.name }} - {{ item.theme.name }} - {{ item.fields.year }} - {{ item.fields.number_of_parts }} - {% if retirement_date %}{{ retirement_date }}{% else %}Not found{% endif %} - {% if g.login.is_authenticated() %} - -
- -
- - {% endif %} - + {% with retirement_date = retired.get(item.fields.set) %} + + {{ table.image(item.url_for_image(), caption=item.fields.name, alt=item.fields.set) }} + {{ item.fields.set }} {{ table.rebrickable(item) }} + {{ item.fields.name }} + {{ item.theme.name }} + {{ item.fields.year }} + {{ item.fields.number_of_parts }} + {% if retirement_date %}{{ retirement_date }}{% else %}Not found{% endif %} + {% if g.login.is_authenticated() %} + +
+ +
+ + {% endif %} + + {% endwith %} {% endfor %}