core&ui: problem_main: support sort

This commit is contained in:
undefined committed 2025-10-26 23:24:39 +08:00
1 parent e8573d7061
commit 2e9e93c9e1
10 files changed
+46 -16

No files matched your search

@@ -10,6 +10,11 @@
<div class="search">
<input name="q" type="text" value="{{ qs }}" placeholder="{{ _('Search') }}">
{% include "partials/problem_stat.html" %}
<select name="sort" class="search-sort">
{%- for sortType in ["default", "recent"] -%}
<option value="{{ sortType }}" {{ "selected" if sort == sortType else "" }}>{{ _('sort::' + sortType) }}</option>
{%- endfor -%}
</select>
<button type="submit">
<span class="icon icon-search"></span>
</button>