planiverse

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

status.blade.php (2303B)


      1 <li><article>
      2     @component('event_info', [
      3         'account' => $status['account'],
      4         'created_at' => $status['created_at'],
      5         'type' => $status['in_reply_to_id'] === null ? null : 'reply',
      6         'visibility' => $status['visibility']
      7     ])
      8     @endcomponent
      9 
     10     <div>
     11         @if ($status['spoiler_text'] !== '')
     12             <details>
     13                 <summary>{{ $status['spoiler_text'] }}</summary>
     14 
     15                 @component('status_content', ['status' => $status])
     16                 @endcomponent
     17             </details>
     18         @else
     19             @component('status_content', ['status' => $status])
     20             @endcomponent
     21         @endif
     22     </div>
     23 
     24     <div class="actions">
     25         <!-- Context -->
     26         <span title="Expand thread">
     27             <a href="{{ route('thread', ['status_id' => $status['id']]) }}">&#10568;</a>
     28         </span>
     29 
     30         <!-- Reply -->
     31         <span title="Reply">
     32             <a href="{{ route('status', ['status_id' => $status['id']]) }}">&#8629;</a>
     33         </span>
     34 
     35         <!-- Reblog -->
     36         <span title="Reblog">
     37             @if (isset($status['reblogged']) && $status['reblogged'])
     38                 <span class="reblogged">
     39                     <a href="{{ route('unreblog', ['status_id' => $status['id']]) }}">&#8634;</a>
     40                 </span>
     41             @else
     42                 <a href="{{ route('reblog', ['status_id' => $status['id']]) }}">&#8634;</a>
     43             @endif
     44             {{ $status['reblogs_count'] }}
     45         </span>
     46 
     47         <!-- Favourite -->
     48         <span title="Favourite">
     49             @if (isset($status['favourited']) && $status['favourited'])
     50                 <span class="favourited">
     51                     <a href="{{ route('unfavourite', ['status_id' => $status['id']]) }}">&#9733;</a>
     52                 </span>
     53             @else
     54                 <a href="{{ route('favourite', ['status_id' => $status['id']]) }}">&#9734;</a>
     55             @endif
     56             {{ $status['favourites_count'] }}
     57 	</span>
     58 
     59         <!-- Delete -->
     60         @if (Session::has('user') && Session::get('user')->id === $status['account']['id'])
     61             <span title="Delete" id="delete">
     62                 <a href="{{ route('delete', ['status_id' => $status['id']]) }}">&#128473;</a>
     63             </span>
     64         @endif
     65     </div>
     66 </article></li>