mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix contest_filter (#234)
This commit is contained in:
1 parent
8b9ff434e2
commit
fc7e1e2e05
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.25.5",
|
||||
"version": "4.25.6",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<form method="get" name="filter-form">
|
||||
{{ _('Show') }}:
|
||||
<select class="inline compact select" name="rule">
|
||||
<option value="0"{% if not rule %} selected{% endif %}>{{ _('All') }}</option>
|
||||
<option value=""{% if not rule %} selected{% endif %}>{{ _('All') }}</option>
|
||||
{%- for k, v in model.contest.RULES -%}
|
||||
{% if k != 'homework' %}
|
||||
<option value="{{ k }}"{% if rule == k %} selected{% endif %}>{{ _('All {0} Contests').format(v.TEXT) }}</option>
|
||||
|
||||
Reference in new issue
Block a user