1

mini tabel met data toegevoegd

This commit is contained in:
Ventilaar 2021-01-16 19:44:06 +01:00
parent 357daf3b4f
commit 052a4804bd

View File

@ -33,6 +33,47 @@
</div>
</div>
<div class="col-md-6">
<p>{{ data['data']['short_description'] }}</p>
<table class="table table-sm table-dark">
<tr>
<td>Applicatie ID</td>
<td>{{ data['data']['steam_appid'] }}</td>
</tr>
<tr>
<td>Developers</td>
<td>{% for x in data['data']['developers'] %}{{ x }} {% endfor %}</td>
</tr>
<tr>
<td>Publishers</td>
<td>{% for x in data['data']['publishers'] %}{{ x }} {% endfor %}</td>
</tr>
<tr>
<td>Platforms</td>
<td><ul>{% for x in data['data']['platforms'] %}
<li>
{% if x == "windows" and data['data']['platforms'][x] == True %}
Windows: Ja
{% elif x == "windows" %}
Windows: Nee
{% endif %}
{% if x == "mac" and data['data']['platforms'][x] == True %}
Mac: Ja
{% elif x == "mac" %}
Mac: Nee
{% endif %}
{% if x == "linux" and data['data']['platforms'][x] == True %}
Linux: Ja
{% elif x == "linux" %}
Linux: Nee
{% endif %}
</li>
{% endfor %}</ul></td>
</tr>
<tr>
<td>Uitgave datum</td>
<td>{{ data['data']['release_date']['date'] }}</td>
</tr>
</table>
</div>
</div>
</div>