diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2016-12-10 18:39:18 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2016-12-10 18:39:18 +0900 |
| commit | b89fe3046bfbc0d7db8e7e8773e92c0536417450 (patch) | |
| tree | 1c076e54419fbf582269c9dfb949ba97d71c9ea1 /templates | |
| parent | a5c79ff63872b105bd670b4b9697cda38fabda96 (diff) | |
Fix board filter listing in the search form
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/search_form.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/search_form.html b/templates/search_form.html index 4c8bd077..095968de 100644 --- a/templates/search_form.html +++ b/templates/search_form.html @@ -6,8 +6,13 @@ <input id="search" name="search" type="text" size="40" value="{{ search }}"> <select name="board"> <option value="none">{% trans %}Select board{% endtrans %}…</option> - {% for b in boards %} - <option value="{{ b }}"{% if b == board %} selected{% endif %}>/{{ b }}/</option> + + {% for b2 in boards %} + {% if b2 == b %} + <option value="{{ b2 }}" selected>/{{ b2 }}/</option> + {% else %} + <option value="{{ b2 }}">/{{ b2 }}/</option> + {% endif %} {% endfor %} </select> <input type="submit" value="{% trans %}Search{% endtrans %}" /> |
