This commit is contained in:
undefined committed 2022-01-24 00:00:37 +08:00
1 parent 688ccf811b
commit 775301c001
7 files changed
+56 -75

No files matched your search

@@ -3,7 +3,7 @@
{% set _linkArgs = { pid:pdoc.pid|default(pdoc.docId) } %}
{% if tdoc %}{{ set(_linkArgs, 'query', {tid:tdoc.docId}) }}{% endif %}
{% if pdoc.domainId !== handler.domainId %}{{ set(_linkArgs, 'domainId', pdoc.domainId) }}{% endif %}
<a href="{{ url('problem_detail', _linkArgs) }}"{% if small %}data-tooltip="{{ pdoc.title }}"{% endif %}>
<a href="{{ url('problem_detail', _linkArgs) }}"{% if small %} data-tooltip="{{ pdoc.title }}"{% endif %}>
{%- endif -%}
{%- if pdoc.domainId !== handler.domainId -%}
{{ pdoc.domainId }}#
@@ -1,4 +1,4 @@
{% macro render_item(icon_name, page_name, args={}, label=none, menu_item=none) %}
{% macro render_item(icon_name, page_name, args={}, label=none, menu_item) %}
{% set target_url = url(page_name, args) if page_name else '#' %}
<li class="menu__item" id="menu-item-{{ menu_item|default(page_name) }}">
<a href="{{ target_url }}" class="menu__link{% if handler.request.path == target_url %} active{% endif %}">