feat: extended data based dynamic wishlist

This commit is contained in:
Begerad, Stefan 2021-10-28 22:04:11 -04:00
parent df2e9c2abd
commit 528117f686
2 changed files with 47 additions and 8 deletions

View File

@ -8,7 +8,13 @@
}
],
"medium": [
{
{
"tag": "Buch",
"name": "Our Ecological Footprint - Reducing Human Impact on the Earth",
"url": "https://newsociety.com/books/o/our-ecological-footprint?sitedomain=row",
"comment": "(Bitte Taschenbuch statt gebundene Ausgabe)"
},
{
"tag": "Buch",
"name": "The Personal MBA",
"url": "https://personalmba.com/",
@ -16,11 +22,41 @@
}
],
"low": [
{
"tag": "Thermosflasche",
"name": "Insulated TKPro 32 oz",
"url": "https://www.kleankanteen.com/collections/insulated-bottles/products/insulated-tkpro-32oz",
"comment": "(Farbe: brushed stainless)"
},
{
"tag": "Pfanne",
"name": "Bauernpfanne 24",
"url": "https://www.riess.at/product/bauernpfanne-24/",
"comment": "(Bitte zusammen mit Deckel)"
},
{
"tag": "Pfannendeckel",
"name": "Glasdeckel hoch für Pfanne 24 cm",
"url": "https://www.riess.at/product/glasdeckel-hoch-fuer-pfanne-24-cm/",
"comment": "(Bitte zusammen mit Pfanne)"
},
{
"tag": "Lebensmittel",
"name": "Rapunzel Mandelmus weiß, aus Europa, 500g",
"url": "https://shop.rapunzel.de/produkte/brotaufstriche-nussmus/nussmus-100-nuss/3369/mandelmus-weiss-aus-europa",
"comment": ""
},
{
"tag": "Buch",
"name": "The Art of Happiness",
"url": "https://en.wikipedia.org/wiki/The_Art_of_Happiness",
"comment": "(Bitte Taschenbuch statt gebundene Ausgabe)"
},
{
"tag": "Buch",
"name": "Die Känguru-Chroniken",
"url": "https://de.wikipedia.org/wiki/Die_K%C3%A4nguru-Chroniken",
"comment": "(Bitte Taschenbuch statt gebundene Ausgabe)"
}
]
}

View File

@ -53,8 +53,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
</tr>
</thead>
<tbody>
<tr class="table-info">
{% for item in wishlist.high %}
{% for item in wishlist.high %}
<tr class="table-info">
<td>
{{ item.tag }}
<a href="{{ item.url }}"
@ -63,10 +64,11 @@ SPDX-License-Identifier: GPL-3.0-or-later
</a>
{{ item.comment }}
</td>
{% endfor %}
</tr>
<tr class="table-warning">
{% endfor %}
{% for item in wishlist.medium %}
<tr class="table-warning">
<td>
{{ item.tag }}
<a href="{{ item.url }}"
@ -75,10 +77,11 @@ SPDX-License-Identifier: GPL-3.0-or-later
</a>
{{ item.comment }}
</td>
{% endfor %}
</tr>
{% endfor %}
{% for item in wishlist.low %}
<tr class="table-danger">
{% for item in wishlist.low %}
<td>
{{ item.tag }}
<a href="{{ item.url }}"
@ -87,8 +90,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
</a>
{{ item.comment }}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>