From 53420e092edbf755bf82a4b29a4b5ccb3a05d7b7 Mon Sep 17 00:00:00 2001 From: undefined Date: Thu, 23 Nov 2023 11:39:32 +0800 Subject: [PATCH] ui: optimize --- .../templates/partials/problem_search.html | 39 ------------------- .../ui-default/templates/problem_main.html | 3 -- 2 files changed, 42 deletions(-) delete mode 100644 packages/ui-default/templates/partials/problem_search.html diff --git a/packages/ui-default/templates/partials/problem_search.html b/packages/ui-default/templates/partials/problem_search.html deleted file mode 100644 index f9dd588f..00000000 --- a/packages/ui-default/templates/partials/problem_search.html +++ /dev/null @@ -1,39 +0,0 @@ -{% set pinnedFilter = handler.domain.pinnedFilter|parseYaml %} -{% set categories = (handler.domain.problemCategories or model.system.get('problem.categories'))|parseYaml %} -
- {% for k, v in pinnedFilter %} -
- {{ k }}:    -
- {%- for name, t in v -%} - {% if name !== '__metadata__' %} - {{ name }} - {% endif %} - {%- endfor -%} -
-
- {% endfor %} -
- {{ _('Problem Category') }}:    - -
-
-
- {%- for category, sub_categories in categories -%} -
- {{ category }} - -
- {%- for sub_category in sub_categories -%} -
- {{ sub_category }} - -
- {%- endfor -%} - {%- endfor -%} -
-
-
-{% include "partials/problem_category_dialog.html" %} \ No newline at end of file diff --git a/packages/ui-default/templates/problem_main.html b/packages/ui-default/templates/problem_main.html index 839ae613..05cbb8d3 100644 --- a/packages/ui-default/templates/problem_main.html +++ b/packages/ui-default/templates/problem_main.html @@ -16,9 +16,6 @@ - {% if handler.domain.pinnedFilter %} - {% include "partials/problem_search.html" %} - {% endif %}
{% include "partials/problem_list.html" %}