Add choices to location view

This commit is contained in:
Midgard 2020-02-29 22:26:00 +01:00
parent 79c0056ff0
commit a860998858
Signed by: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 15 additions and 1 deletions

View file

@ -290,3 +290,7 @@ h1, h2, h3, h4, h5, h6{
.enter_darkmode>a {
text-align: center;
}
.dish-choices {
color: var(--dGray2);
}

View file

@ -32,7 +32,17 @@
{% for dish in location.dishes -%}
<tr>
<td>{{ dish.name or dish.id }}</td>
<td>{{ dish.description or "" }}</td>
<td>
{{ dish.description or "" }}
{% if dish.choices %}
<div class="dish-choices">
Choices:
{% set comma = joiner(",") %}
{% for choice in dish.choices %}{{ comma() }}
{{ choice[1].name }}{% endfor %}
</div>
{% endif %}
</td>
<td style="white-space: nowrap;">{{ dish.price_range()|price_range(true) }}<td>
</tr>
{%- endfor %}