mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
My Account: Updated and started adding to tests
- Updated existing tests now affected by my-account changes. - Updated some existing tests to more accuractly check the scenario. - Updated some code styling in SocialController. - Fixed redirects for social account flows to fit my-account. - Added test for social account attaching. - Added test for api token redirect handling.
This commit is contained in:
@ -12,7 +12,9 @@
|
||||
<a href="{{ url('/my-account/profile') }}" class="{{ $category === 'profile' ? 'active' : '' }}">@icon('user') {{ trans('preferences.profile') }}</a>
|
||||
<a href="{{ url('/my-account/auth') }}" class="{{ $category === 'auth' ? 'active' : '' }}">@icon('security') {{ trans('preferences.auth') }}</a>
|
||||
<a href="{{ url('/my-account/shortcuts') }}" class="{{ $category === 'shortcuts' ? 'active' : '' }}">@icon('shortcuts') {{ trans('preferences.shortcuts_interface') }}</a>
|
||||
<a href="{{ url('/my-account/notifications') }}" class="{{ $category === 'notifications' ? 'active' : '' }}">@icon('notifications') {{ trans('preferences.notifications') }}</a>
|
||||
@if(userCan('receive-notifications'))
|
||||
<a href="{{ url('/my-account/notifications') }}" class="{{ $category === 'notifications' ? 'active' : '' }}">@icon('notifications') {{ trans('preferences.notifications') }}</a>
|
||||
@endif
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -89,9 +89,9 @@
|
||||
<div role="presentation">@icon('auth/'. $driver, ['style' => 'width: 56px;height: 56px;'])</div>
|
||||
<p class="my-none bold">{{ $driverName }}</p>
|
||||
@if($user->hasSocialAccount($driver))
|
||||
<p class="text-pos bold text-small my-none">Connected</p>
|
||||
<p class="text-pos bold text-small my-none">{{ trans('settings.users_social_status_connected') }}</p>
|
||||
@else
|
||||
<p class="text-neg bold text-small my-none">Disconnected</p>
|
||||
<p class="text-neg bold text-small my-none">{{ trans('settings.users_social_status_disconnected') }}</p>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
|
Reference in New Issue
Block a user