mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +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
|
@ -20,6 +20,22 @@
|
||||||
<span class="float-right notification-action">
|
<span class="float-right notification-action">
|
||||||
</span>
|
</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
|
@endswitch
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Reference in a new issue