]> BookStack Code Mirror - bookstack/blob - resources/views/common/activity-item.blade.php
Tests: Updated comment test to account for new editor usage
[bookstack] / resources / views / common / activity-item.blade.php
1
2 {{--Requires an Activity item with the name $activity passed in--}}
3
4 <div>
5     @if($activity->user)
6     <img class="avatar" src="{{ $activity->user->getAvatar(30) }}" alt="{{ $activity->user->name }}">
7     @endif
8 </div>
9
10 <div>
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->loggable && is_null($activity->loggable->deleted_at))
20         <a href="{{ $activity->loggable->getUrl() }}">{{ $activity->loggable->name }}</a>
21     @endif
22
23     @if($activity->loggable && !is_null($activity->loggable->deleted_at))
24         "{{ $activity->loggable->name }}"
25     @endif
26
27     <br>
28
29     <span class="text-muted"><small>@icon('time'){{ $activity->created_at->diffForHumans() }}</small></span>
30 </div>