Add choices to location view
This commit is contained in:
parent
79c0056ff0
commit
a860998858
2 changed files with 15 additions and 1 deletions
|
@ -290,3 +290,7 @@ h1, h2, h3, h4, h5, h6{
|
||||||
.enter_darkmode>a {
|
.enter_darkmode>a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dish-choices {
|
||||||
|
color: var(--dGray2);
|
||||||
|
}
|
||||||
|
|
|
@ -32,7 +32,17 @@
|
||||||
{% for dish in location.dishes -%}
|
{% for dish in location.dishes -%}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ dish.name or dish.id }}</td>
|
<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>
|
<td style="white-space: nowrap;">{{ dish.price_range()|price_range(true) }}<td>
|
||||||
</tr>
|
</tr>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
Loading…
Reference in a new issue