X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ae95d0a239cf5f7406f6af7e2b25fd5be94a8ad0..refs/pull/263/head:/resources/views/users/index.blade.php diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.php index 730ead8aa..3ea5a03f7 100644 --- a/resources/views/users/index.blade.php +++ b/resources/views/users/index.blade.php @@ -3,45 +3,78 @@ @section('content') + @include('settings/navbar', ['selected' => 'users']) -
-
-
-
- @if($currentUser->can('user-create')) - New User + +
+
+
+

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

+
+
+

+ @if(userCan('users-manage')) + {{ trans('settings.users_add_new') }} @endif
-
+
+
+
+ {{ $users->links() }} +
+
+
+
+ @foreach(collect($listDetails)->except('search') as $name => $val) + + @endforeach + +
+
+
-
-

Users

- - - + + + @foreach($users as $user) - + + - - + @endforeach
NameEmailUser Type{{ trans('auth.name') }}{{ trans('auth.email') }}{{ trans('settings.role_user_roles') }}
{{$user->name}}{{ $user->name }} - @if($currentUser->can('user-update') || $currentUser->id == $user->id) - + @if(userCan('users-manage') || $currentUser->id == $user->id) + id}") }}"> + @endif + {{ $user->name }} + @if(userCan('users-manage') || $currentUser->id == $user->id) + @endif - {{$user->name}} - @if($currentUser->can('user-update') || $currentUser->id == $user->id) + + @if(userCan('users-manage') || $currentUser->id == $user->id) + id}") }}"> + @endif + {{ $user->email }} + @if(userCan('users-manage') || $currentUser->id == $user->id) @endif {{$user->email}}{{ $user->role->display_name }} + @foreach($user->roles as $index => $role) + id}") }}">{{$role->display_name}}@if($index !== count($user->roles) -1),@endif + @endforeach +
+ +
+ {{ $users->links() }} +
@stop