X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9fe158b78aad887657e9f02f217582bb03f6e406..refs/pull/5725/head:/resources/views/users/profile.blade.php diff --git a/resources/views/users/profile.blade.php b/resources/views/users/profile.blade.php index 10bd0ec63..a8be8a4c1 100644 --- a/resources/views/users/profile.blade.php +++ b/resources/views/users/profile.blade.php @@ -1,77 +1,120 @@ -@extends('base') +@extends('layouts.simple') -@section('content') +@section('body') -
-
-
+
-
+
-
-
-
-
+
+
+
{{ trans('entities.recent_activity') }}
+ @include('common.activity-list', ['activity' => $activity]) +
+
+ +
+
+
+
+
{{ $user->name }}
-

{{ $user->name }}

+

{{ $user->name }}

{{ trans('entities.profile_user_for_x', ['time' => $user->created_at->diffForHumans(null, true)]) }}

-
-
-
{{ trans('entities.profile_created_content') }}
-
- {{ $assetCounts['books'] }} {{ str_plural(trans('entities.book'), $assetCounts['books']) }} -
-
- {{ $assetCounts['chapters'] }} {{ str_plural(trans('entities.chapter'), $assetCounts['chapters']) }} -
- -
+
+
+

+ {{ trans('entities.recently_created_pages') }} + @if (count($recentlyCreated['pages']) > 0) + {{ trans('common.view_all') }} + @endif +

+ @if (count($recentlyCreated['pages']) > 0) + @include('entities.list', ['entities' => $recentlyCreated['pages'], 'showPath' => true]) + @else +

{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}

+ @endif +
-
+
+

+ {{ trans('entities.recently_created_chapters') }} + @if (count($recentlyCreated['chapters']) > 0) + {{ trans('common.view_all') }} + @endif +

+ @if (count($recentlyCreated['chapters']) > 0) + @include('entities.list', ['entities' => $recentlyCreated['chapters'], 'showPath' => true]) + @else +

{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}

+ @endif +
-

{{ trans('entities.recently_created_pages') }}

- @if (count($recentlyCreated['pages']) > 0) - @include('partials/entity-list', ['entities' => $recentlyCreated['pages']]) - @else -

{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}

- @endif +
+

+ {{ trans('entities.recently_created_books') }} + @if (count($recentlyCreated['books']) > 0) + {{ trans('common.view_all') }} + @endif +

+ @if (count($recentlyCreated['books']) > 0) + @include('entities.list', ['entities' => $recentlyCreated['books'], 'showPath' => true]) + @else +

{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}

+ @endif +
-
- -

{{ trans('entities.recently_created_chapters') }}

- @if (count($recentlyCreated['chapters']) > 0) - @include('partials/entity-list', ['entities' => $recentlyCreated['chapters']]) - @else -

{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}

- @endif - -
- -

{{ trans('entities.recently_created_books') }}

- @if (count($recentlyCreated['books']) > 0) - @include('partials/entity-list', ['entities' => $recentlyCreated['books']]) - @else -

{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}

- @endif -
- -
-

{{ trans('entities.recent_activity') }}

- @include('partials/activity-list', ['activity' => $activity]) +
+

+ {{ trans('entities.recently_created_shelves') }} + @if (count($recentlyCreated['shelves']) > 0) + {{ trans('common.view_all') }} + @endif +

+ @if (count($recentlyCreated['shelves']) > 0) + @include('entities.list', ['entities' => $recentlyCreated['shelves'], 'showPath' => true]) + @else +

{{ trans('entities.profile_not_created_shelves', ['userName' => $user->name]) }}

+ @endif +
-
+
@stop \ No newline at end of file