]> BookStack Code Mirror - bookstack/blob - resources/views/users/profile.blade.php
shorter amazon S3 url
[bookstack] / resources / views / users / profile.blade.php
1 @extends('base')
2
3 @section('content')
4
5     <div class="container" ng-non-bindable>
6         <div class="row">
7             <div class="col-sm-7">
8
9                 <div class="padded-top large"></div>
10
11                 <div class="row">
12                     <div class="col-md-7">
13                         <div class="clearfix">
14                             <div class="padded-right float left">
15                                 <img class="avatar square huge" src="{{$user->getAvatar(120)}}" alt="{{ $user->name }}">
16                             </div>
17                             <div>
18                                 <h3 style="margin-top: 0;">{{ $user->name }}</h3>
19                                 <p class="text-muted">
20                                     User for {{ $user->created_at->diffForHumans(null, true) }}
21                                 </p>
22                             </div>
23                         </div>
24                     </div>
25                     <div class="col-md-5 text-bigger" id="content-counts">
26                         <div class="text-muted">Created Content</div>
27                         <div class="text-book">
28                             <i class="zmdi zmdi-book zmdi-hc-fw"></i> {{ $assetCounts['books'] }} {{ str_plural('Book', $assetCounts['books']) }}
29                         </div>
30                         <div class="text-chapter">
31                             <i class="zmdi zmdi-collection-bookmark zmdi-hc-fw"></i> {{ $assetCounts['chapters'] }} {{ str_plural('Chapter', $assetCounts['chapters']) }}
32                         </div>
33                         <div class="text-page">
34                             <i class="zmdi zmdi-file-text zmdi-hc-fw"></i> {{ $assetCounts['pages'] }} {{ str_plural('Page', $assetCounts['pages']) }}
35                         </div>
36                     </div>
37                 </div>
38
39
40                 <hr class="even">
41
42                 <h3>Recently Created Pages</h3>
43                 @if (count($recentlyCreated['pages']) > 0)
44                     @include('partials/entity-list', ['entities' => $recentlyCreated['pages']])
45                 @else
46                     <p class="text-muted">{{ $user->name }} has not created any pages</p>
47                 @endif
48
49                 <hr class="even">
50
51                 <h3>Recently Created Chapters</h3>
52                 @if (count($recentlyCreated['chapters']) > 0)
53                     @include('partials/entity-list', ['entities' => $recentlyCreated['chapters']])
54                 @else
55                     <p class="text-muted">{{ $user->name }} has not created any chapters</p>
56                 @endif
57
58                 <hr class="even">
59
60                 <h3>Recently Created Books</h3>
61                 @if (count($recentlyCreated['books']) > 0)
62                     @include('partials/entity-list', ['entities' => $recentlyCreated['books']])
63                 @else
64                     <p class="text-muted">{{ $user->name }} has not created any books</p>
65                 @endif
66             </div>
67
68             <div class="col-sm-4 col-sm-offset-1" id="recent-activity">
69                 <h3>Recent Activity</h3>
70                 @include('partials/activity-list', ['activity' => $activity])
71             </div>
72
73         </div>
74     </div>
75
76
77 @stop