mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-15 07:33:36 +08:00
b90033a730
- Moves guest user caching from User class to app container for simplicity. - Updates test to use simpler $this->users->guest() method for consistency. - Streamlined helpers to avoid function overlap for simplicity. - Extracted user profile dropdown while doing changes.
42 lines
1.9 KiB
PHP
42 lines
1.9 KiB
PHP
@extends('layouts.simple')
|
|
|
|
@section('body')
|
|
<div class="container small my-xl">
|
|
|
|
<section class="card content-wrap auto-height items-center justify-space-between gap-m flex-container-row wrap">
|
|
<div class="flex min-width-m">
|
|
<h2 class="list-heading">{{ trans('preferences.shortcuts_interface') }}</h2>
|
|
<p class="text-muted">{{ trans('preferences.shortcuts_overview_desc') }}</p>
|
|
</div>
|
|
<div class="text-right">
|
|
<a href="{{ url('/preferences/shortcuts') }}" class="button outline">{{ trans('common.manage') }}</a>
|
|
</div>
|
|
</section>
|
|
|
|
@if(!user()->isGuest() && userCan('receive-notifications'))
|
|
<section class="card content-wrap auto-height items-center justify-space-between gap-m flex-container-row wrap">
|
|
<div class="flex min-width-m">
|
|
<h2 class="list-heading">{{ trans('preferences.notifications') }}</h2>
|
|
<p class="text-muted">{{ trans('preferences.notifications_desc') }}</p>
|
|
</div>
|
|
<div class="text-right">
|
|
<a href="{{ url('/preferences/notifications') }}" class="button outline">{{ trans('common.manage') }}</a>
|
|
</div>
|
|
</section>
|
|
@endif
|
|
|
|
@if(!user()->isGuest())
|
|
<section class="card content-wrap auto-height items-center justify-space-between gap-m flex-container-row wrap">
|
|
<div class="flex min-width-m">
|
|
<h2 class="list-heading">{{ trans('settings.users_edit_profile') }}</h2>
|
|
<p class="text-muted">{{ trans('preferences.profile_overview_desc') }}</p>
|
|
</div>
|
|
<div class="text-right">
|
|
<a href="{{ user()->getEditUrl() }}" class="button outline">{{ trans('common.manage') }}</a>
|
|
</div>
|
|
</section>
|
|
@endif
|
|
|
|
</div>
|
|
@stop
|