mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core&ui: optimize injectable
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user