mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-26 18:30:50 +08:00
88dfb40c63
- Homepage toggle especially useful for not-logged-in users since they do not have a dropdown.
9 lines
480 B
PHP
9 lines
480 B
PHP
<form action="{{ url('/settings/users/toggle-dark-mode') }}" method="post">
|
|
{{ csrf_field() }}
|
|
{{ method_field('patch') }}
|
|
@if(setting()->getForCurrentUser('dark-mode-enabled'))
|
|
<button class="{{ $classes ?? '' }}"><span>@icon('light-mode')</span><span>{{ trans('common.light_mode') }}</span></button>
|
|
@else
|
|
<button class="{{ $classes ?? '' }}"><span>@icon('dark-mode')</span><span>{{ trans('common.dark_mode') }}</span></button>
|
|
@endif
|
|
</form> |