aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-07-28 20:15:35 -0400
committerBen Burwell <ben@benburwell.com>2019-07-28 20:15:43 -0400
commit9324477c714d405dc1e4658c1d9523739479729e (patch)
treead1c5d4d48b5977becfd43c39b470136162f3bdd /templates
parent5a9c09effce6c8ca81788bc329125524370a31d9 (diff)
Fix more/less
Diffstat (limited to 'templates')
-rw-r--r--templates/beerpage.jinja26
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/beerpage.jinja2 b/templates/beerpage.jinja2
index 9f6bf2b..44a5e82 100644
--- a/templates/beerpage.jinja2
+++ b/templates/beerpage.jinja2
@@ -76,9 +76,9 @@
<form action="" method="post" class="alert alert-secondary form-inline">
Show me beers which are
<select name="direction" class="form-control">
- <option {% if direction == '3' %}selected{% endif %} value="3">Much more</option>
- <option {% if direction == '2' %}selected{% endif %} value="2">More</option>
- <option {% if direction == '1' or not direction%}selected{% endif %} value="1">Slightly more</option>
+ {% for d in ['Much more', 'More', 'Slightly more'] %}
+ <option {% if direction == d %}selected{% endif %}>{{ d }}</option>
+ {% endfor %}
</select>
<select name="attr" class="form-control">
{% for a in attrs %}