planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.stjo.hn/planiverse
Log | Files | Refs | README | LICENSE

event_info.blade.php (1825B)


      1 <aside>
      2     <span class="account" title="{{ $account['acct'] }}">
      3         <a href="{{ route('account', ['account_id' => $account['id']]) }}">
      4             <img
      5                 src="{{ $account['avatar'] }}"
      6                 alt="{{ $account['acct'] }}"
      7                 class="avatar"
      8             />
      9             {{ $account['display_name'] }}
     10         </a>
     11     </span>
     12 
     13     <span class="event-indicators">
     14         @if ($visibility !== null)
     15             <span class="visibility">
     16                 @if ($visibility === 'public')
     17                     <span title="public">&#9675;</span>
     18                 @elseif ($visibility === 'unlisted')
     19                     <span title="unlisted">&#9676;</span>
     20                 @elseif ($visibility === 'private')
     21                     <span title="private">&#128274;</span>
     22                 @elseif ($visibility === 'direct')
     23                     <span title="direct">&#9993;</span>
     24                 @endif
     25             </span>
     26         @endif
     27 
     28         @if ($type !== null)
     29             <span class="event-action">
     30                 @if ($type === 'mention')
     31                     mentioned
     32                 @elseif ($type === 'reblog')
     33                     reblogged
     34                 @elseif ($type === 'favourite')
     35                     favourited
     36                 @elseif ($type === 'follow')
     37                     followed you.
     38                 @elseif ($type === 'reply')
     39                     &#8624;
     40                 @endif
     41             </span>
     42         @endif
     43     </span>
     44 
     45     <time datetime="{{ $created_at }}">
     46         @php
     47             $created_at_datetime = new Carbon\Carbon($created_at);
     48         @endphp
     49         @if (env('SHOW_BEATS') === true)
     50             {{ '@' . $created_at_datetime->format('B') }} |
     51         @endif
     52         {{ $created_at_datetime->diffForHumans(null, false, true) }}
     53     </time>
     54 </aside>