mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: enhanced category selector
This commit is contained in:
1 parent
74f4e44f0f
commit
6567c739b6
12 files changed
+45
-54
No files matched your search
@@ -3,8 +3,6 @@
|
||||
{% extends "layout/basic.html" %}
|
||||
{% block content %}
|
||||
{{ set(UiContext, {
|
||||
getProblemUrlWithCategory: url('problem_category', category='{category}'),
|
||||
getProblemUrlWithoutCategory: url('problem_main'),
|
||||
currentCategory: category
|
||||
}) }}
|
||||
<div class="row">
|
||||
@@ -13,7 +11,7 @@
|
||||
<div class="section__body no-padding">
|
||||
<form method="get" id="searchForm" action="{{ url('problem_main') }}">
|
||||
<div class="search">
|
||||
<input name="q" type="text" value="{{ category }}" placeholder="{{ _('Search') }}">
|
||||
<input name="q" type="text" value="{{ qs }}" placeholder="{{ _('Search') }}">
|
||||
{% include "partials/problem_stat.html" %}
|
||||
<button type="submit">
|
||||
<span class="icon icon-search"></span>
|
||||
|
||||
Reference in new issue
Block a user