mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix login dialog
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -40,9 +40,9 @@
|
||||
<input type="submit" value="{{ _('Login') }}" name="login_submit" class="expanded rounded primary button">
|
||||
</div></div>
|
||||
{% endif %}
|
||||
{%- for v in loginMethods -%}
|
||||
{%- for v in loginMethods|default(handler.loginMethods) -%}
|
||||
<div class="row"><div class="columns">
|
||||
<a href="{{ url('user_oauth', type=v.id, query={redirect: handler.request.url}) }}" class="expanded rounded button">{{ _(v.text) }}</a>
|
||||
<a href="{{ url('user_oauth', type=v.id, query={redirect: handler.request.path}) }}" class="expanded rounded button">{{ _(v.text) }}</a>
|
||||
</div></div>
|
||||
{%- endfor -%}
|
||||
<div class="row"><div class="columns">
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</div></div>
|
||||
{% endif %}
|
||||
{%- for v in loginMethods -%}
|
||||
{%- for v in loginMethods|default(handler.loginMethods) -%}
|
||||
<div class="row"><div class="columns">
|
||||
<a href="{{ url('user_oauth', type=v.id, query={redirect: redirect}) }}" class="expanded rounded button inverse">{{ _(v.text) }}</a>
|
||||
</div></div>
|
||||
|
||||
Reference in new issue
Block a user