core&ui: optimize injectable

This commit is contained in:
undefined committed 2022-09-07 20:30:44 +08:00
1 parent 25444f69f0
commit 7343c596e9
9 files changed
+64 -64

No files matched your search

@@ -65,10 +65,10 @@
<h1 class="section__title">{{ _('Create Problem') }}</h1>
</div>
<ol class="menu">
{%- for item in ui.nodes.problem_add -%}
{%- for item in ui.getNodes('ProblemAdd') -%}
<a href="{{ url(item.name, item.args) }}" class="menu__link">
<span class="icon icon-{{ item.icon|default('add') }}"></span>
{{ _(item.text) }}
<span class="icon icon-{{ item.args.icon|default('add') }}"></span>
{{ _(item.args.text) }}
</a>
{%- endfor -%}
</ol>