From a860998858e70207c7a9bfede24bcce216d440c2 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 29 Feb 2020 22:26:00 +0100 Subject: [PATCH] Add choices to location view --- app/static/css/main.css | 4 ++++ app/templates/location.html | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/static/css/main.css b/app/static/css/main.css index 52d9881..10a54ab 100644 --- a/app/static/css/main.css +++ b/app/static/css/main.css @@ -290,3 +290,7 @@ h1, h2, h3, h4, h5, h6{ .enter_darkmode>a { text-align: center; } + +.dish-choices { + color: var(--dGray2); +} diff --git a/app/templates/location.html b/app/templates/location.html index 34f7453..5080a30 100644 --- a/app/templates/location.html +++ b/app/templates/location.html @@ -32,7 +32,17 @@ {% for dish in location.dishes -%} {{ dish.name or dish.id }} - {{ dish.description or "" }} + + {{ dish.description or "" }} + {% if dish.choices %} +
+ Choices: + {% set comma = joiner(",") %} + {% for choice in dish.choices %}{{ comma() }} + {{ choice[1].name }}{% endfor %} +
+ {% endif %} + {{ dish.price_range()|price_range(true) }} {%- endfor %}