]> BookStack Code Mirror - bookstack/blob - resources/views/partials/activity-item.blade.php
#47 - Fixes the issues with the test case.
[bookstack] / resources / views / partials / activity-item.blade.php
1
2 {{--Requires an Activity item with the name $activity passed in--}}
3
4 @if($activity->user)
5     <div class="left">
6         <img class="avatar" src="{{ $activity->user->getAvatar(30) }}" alt="{{ $activity->user->name }}">
7     </div>
8 @endif
9
10 <div class="right" ng-non-bindable>
11     @if($activity->user)
12         <a href="{{ $activity->user->getProfileUrl() }}">{{ $activity->user->name }}</a>
13     @else
14         {{ trans('common.deleted_user') }}
15     @endif
16
17     {{ $activity->getText() }}
18
19     @if($activity->entity)
20         <a href="{{ $activity->entity->getUrl() }}">{{ $activity->entity->name }}</a>
21     @endif
22
23     @if($activity->extra) "{{ $activity->extra }}" @endif
24
25     <br>
26
27     <span class="text-muted"><small><i class="zmdi zmdi-time"></i>{{ $activity->created_at->diffForHumans() }}</small></span>
28 </div>