mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update activity blade template
Add follow notifications
This commit is contained in:
parent
e4daaf32b5
commit
18d9e609dc
1 changed files with 17 additions and 1 deletions
|
@ -19,7 +19,23 @@
|
|||
</span>
|
||||
<span class="float-right notification-action">
|
||||
</span>
|
||||
@break
|
||||
@break
|
||||
@case('follow')
|
||||
<span class="notification-icon pr-3">
|
||||
<img src="{{$notification->actor->avatarUrl()}}" width="32px" class="rounded-circle">
|
||||
</span>
|
||||
<span class="notification-text">
|
||||
{!! $notification->rendered !!}
|
||||
<span class="text-muted notification-timestamp pl-1">{{$notification->created_at->diffForHumans(null, true, true, true)}}</span>
|
||||
</span>
|
||||
<span class="float-right notification-action">
|
||||
<form class="follow-form" method="post" action="/i/follow" style="display: inline;" data-id="{{$notification->actor->id}}" data-action="follow">
|
||||
@csrf
|
||||
<input type="hidden" name="item" value="{{$notification->actor->id}}">
|
||||
<button class="btn btn-primary font-weight-bold px-4 py-0" type="submit">Follow</button>
|
||||
</form>
|
||||
</span>
|
||||
@break
|
||||
@endswitch
|
||||
</li>
|
||||
@endforeach
|
||||
|
|
Loading…
Reference in a new issue