mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: allow disabling domain quick switch
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -78,6 +78,11 @@ formatCode:
|
||||
preload:
|
||||
type: text
|
||||
default: ''
|
||||
domainNavigation:
|
||||
type: boolean
|
||||
family: setting_display
|
||||
desc: Show Domain Navigation
|
||||
value: true
|
||||
about:
|
||||
type: markdown
|
||||
name: about
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
</ol>
|
||||
</li>
|
||||
{% else %}
|
||||
{% if model.system.get('ui-default.domainNavigation') %}
|
||||
<li class="nav__list-item" data-dropdown-pos="bottom right" data-dropdown-custom-class="nav__dropdown" data-dropdown-target="#menu-nav-domain" data-dropdown-disabledconstrainToWindow data-dropdown-trigger-desktop-only>
|
||||
<span class="nav__item"><span class="icon"><img class="small user-profile-avatar v-center" loading="lazy" src="{{ avatarUrl(UiContext.domain.avatar|default('')) }}" width="20" height="20"></span> {{ UiContext.domain.name }} <span class="icon icon-expand_more nojs--hide"></span></span>
|
||||
<ol class="dropdown-target menu" id="menu-nav-domain">
|
||||
@@ -52,6 +53,7 @@
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="nav__list-item" data-dropdown-pos="bottom right" data-dropdown-custom-class="nav__dropdown" data-dropdown-target="#menu-nav-user" data-dropdown-disabledconstrainToWindow data-dropdown-trigger-desktop-only>
|
||||
<a href="{{ url('user_detail', uid=handler.user._id) }}" class="nav__item">{{ handler.user.uname }} <span class="icon icon-expand_more nojs--hide"></span></a>
|
||||
<ol class="dropdown-target menu" id="menu-nav-user">
|
||||
|
||||
Reference in new issue
Block a user