X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/35813e818d0b30c67b4d3b83782c36c4b2edfb29..refs/pull/5681/head:/resources/views/users/edit.blade.php diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 832186930..611653d6a 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -34,11 +34,13 @@ - @include('users.parts.language-option-row', ['value' => old('language') ?? $user->getLocale()->appLocale()]) + @if(!$user->isGuest()) + @include('users.parts.language-option-row', ['value' => old('language') ?? $user->getLocale()->appLocale()]) + @endif
- {{ trans('common.cancel') }} @if($authMethod !== 'system') id}/delete") }}" @@ -51,7 +53,7 @@

{{ trans('settings.users_mfa') }}

-

{{ trans('settings.users_mfa_desc') }}

+

{{ trans('settings.users_mfa_desc') }}

@if ($mfaMethods->count() > 0) @@ -71,28 +73,28 @@
- @if(user()->id === $user->id && count($activeSocialDrivers) > 0) + @if(count($activeSocialDrivers) > 0)
-

{{ trans('settings.users_social_accounts') }}

-

{{ trans('settings.users_social_accounts_info') }}

+
+

{{ trans('settings.users_social_accounts_desc') }}

- @foreach($activeSocialDrivers as $driver => $enabled) + @foreach($activeSocialDrivers as $driver => $driverName)
@icon('auth/'. $driver, ['style' => 'width: 56px;height: 56px;'])
-
- @if($user->hasSocialAccount($driver)) -
- {{ csrf_field() }} - -
- @else - {{ trans('settings.users_social_connect') }} - @endif -
+

{{ $driverName }}

+ @if($user->hasSocialAccount($driver)) +

{{ trans('settings.users_social_status_connected') }}

+ @else +

{{ trans('settings.users_social_status_disconnected') }}

+ @endif
@endforeach
@@ -100,9 +102,7 @@
@endif - @if((user()->id === $user->id && userCan('access-api')) || userCan('users-manage')) - @include('users.api-tokens.parts.list', ['user' => $user]) - @endif + @include('users.api-tokens.parts.list', ['user' => $user, 'context' => 'settings'])
@stop