mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: problem_main: support sort
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user