Skip to content

Commit

Permalink
fix contest filter
Browse files Browse the repository at this point in the history
  • Loading branch information
twd2 committed Jul 11, 2017
1 parent 728ccee commit 0eb327e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vj4/ui/templates/contest_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1 class="section__title">{% if not rule %}{{ _('All Contests') }}{% else %}{{
<form method="get" name="filter-form">
{{ _('Show') }}:
<select class="inline compact select" name="rule">
<option value=""{% if not rule %} selected{% endif %}>{{ _('All') }}</option>
<option value="0"{% if not rule %} selected{% endif %}>{{ _('All') }}</option>
{% for k, v in vj4.constant.contest.RULE_TEXTS.items() %}
<option value="{{ k }}"{% if rule == k %} selected{% endif %}>{{ _('All {0} Contests').format(_(v)) }}</option>
{% endfor %}
Expand Down

0 comments on commit 0eb327e

Please sign in to comment.