]> BookStack Code Mirror - bookstack/blob - resources/views/partials/activity-item.blade.php
1fa823309138ca5f50b66e941c78bc1390376481
[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) {{$activity->user->name}} @endif
5
6 {{ $activity->getText() }}
7
8 @if($activity->entity())
9     <a href="{{ $activity->entity()->getUrl() }}">{{ $activity->entity()->name }}</a>
10 @endif
11
12 @if($activity->extra) "{{$activity->extra}}" @endif
13
14 <br>
15
16 <span class="text-muted"><small><i class="zmdi zmdi-time"></i>{{ $activity->created_at->diffForHumans() }}</small></span>