mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: signin_dialog: optimize layout when builtin login disabled
This commit is contained in:
4 files changed
+12
-3
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<div class="dialog dialog--signin" style="display:none">
|
||||
<div class="dialog__content">
|
||||
{% if model.system.get('server.login') %}
|
||||
<div class="dialog--signin__bg">
|
||||
<div class="dialog--signin__side">
|
||||
<h1>{{ _("Don't have an account?") }}</h1>
|
||||
@@ -9,6 +10,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="dialog--signin__main">
|
||||
<form action="{{ url('user_login') }}" method="post">
|
||||
<div class="dialog--signin__close-container supplementary">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<ol class="nav__list nav__list--secondary clearfix">
|
||||
{% if not handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
|
||||
<li class="nav__list-item"><a href="{{ url('user_login') }}" class="nav__item" name="nav_login">{{ _('Login') }}</a></li>
|
||||
{% if handler.user.hasPriv(PRIV.PRIV_REGISTER_USER) %}
|
||||
{% if handler.user.hasPriv(PRIV.PRIV_REGISTER_USER) and model.system.get('server.login') %}
|
||||
<li class="nav__list-item"><a href="{{ url('user_register') }}" class="nav__item--round">{{ _('Sign Up') }}</a></li>
|
||||
{% endif %}
|
||||
<li class="nav__list-item nojs--hide" 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>
|
||||
|
||||
Reference in new issue
Block a user