mirror of https://git.stjo.hn/planiverse
55 lines
1.8 KiB
PHP
55 lines
1.8 KiB
PHP
<aside>
|
|
<span class="account" title="{{ $account['acct'] }}">
|
|
<a href="{{ route('account', ['account_id' => $account['id']]) }}">
|
|
<img
|
|
src="{{ $account['avatar'] }}"
|
|
alt="{{ $account['acct'] }}"
|
|
class="avatar"
|
|
/>
|
|
{{ $account['display_name'] }}
|
|
</a>
|
|
</span>
|
|
|
|
<span class="event-indicators">
|
|
@if ($visibility !== null)
|
|
<span class="visibility">
|
|
@if ($visibility === 'public')
|
|
<span title="public">○</span>
|
|
@elseif ($visibility === 'unlisted')
|
|
<span title="unlisted">◌</span>
|
|
@elseif ($visibility === 'private')
|
|
<span title="private">🔒</span>
|
|
@elseif ($visibility === 'direct')
|
|
<span title="direct">✉</span>
|
|
@endif
|
|
</span>
|
|
@endif
|
|
|
|
@if ($type !== null)
|
|
<span class="event-action">
|
|
@if ($type === 'mention')
|
|
mentioned
|
|
@elseif ($type === 'reblog')
|
|
reblogged
|
|
@elseif ($type === 'favourite')
|
|
favourited
|
|
@elseif ($type === 'follow')
|
|
followed you.
|
|
@elseif ($type === 'reply')
|
|
↰
|
|
@endif
|
|
</span>
|
|
@endif
|
|
</span>
|
|
|
|
<time datetime="{{ $created_at }}">
|
|
@php
|
|
$created_at_datetime = new Carbon\Carbon($created_at);
|
|
@endphp
|
|
@if (env('SHOW_BEATS') === true)
|
|
{{ '@' . $created_at_datetime->format('B') }} |
|
|
@endif
|
|
{{ $created_at_datetime->diffForHumans(null, false, true) }}
|
|
</time>
|
|
</aside>
|