From 96085553459bd95023541c2774d7ffb443e0345c Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 5 Jan 2020 11:07:25 +0800 Subject: [PATCH] hide block when no oauth providers --- resources/views/auth/oauth.twig | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/resources/views/auth/oauth.twig b/resources/views/auth/oauth.twig index 9efe51ae..09b5a576 100644 --- a/resources/views/auth/oauth.twig +++ b/resources/views/auth/oauth.twig @@ -1,9 +1,11 @@ -
-
- {{ trans('general.more') }} -
- {% for name, provider in providers %} - - - {{ provider.displayName }} - - {% endfor %} -
+{% if providers|length > 0 %} +
+
- {{ trans('general.more') }} -
+ {% for name, provider in providers %} + + + {{ provider.displayName }} + + {% endfor %} +
+{% endif %}