planiverse

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

account.blade.php (1881B)


      1 <!doctype html>
      2 <html lang="{{ app()->getLocale() }}">
      3     <head>
      4         <meta charset="utf-8">
      5         <meta http-equiv="X-UA-Compatible" content="IE=edge">
      6         <meta name="viewport" content="width=device-width, initial-scale=1">
      7 
      8         <title>{{ $mastodon_domain }} | {{ $account['acct'] }}</title>
      9 
     10         <link rel="stylesheet" href="{{ url('css/styles.css') }}" />
     11     </head>
     12     <body>
     13         <h1>{{ $mastodon_domain }} | {{ $account['acct'] }}</h1>
     14 
     15         @component('navigation')
     16         @endcomponent
     17 
     18         <div>
     19             <span class="account" title="{{ $account['acct'] }}">
     20                 <a href="{{ $account['url'] }}">
     21                     <img
     22                         src="{{ $account['avatar'] }}"
     23                         alt="{{ $account['acct'] }}"
     24                         class="avatar"
     25                     />
     26                     {{ $account['display_name'] }}
     27                     @if ($account['bot'] ?? false) &#129302; @endif
     28                     @if ($account['locked']) &#128274; @endif
     29                 </a>
     30             </span>
     31             {!! $account['note'] !!}
     32             <div>
     33                 @if ($relationship['following'])
     34                     <a href="{{ route('unfollow', ['account_id' => $account['id']]) }}">
     35                         Unfollow
     36                     </a>
     37                 @else
     38                     <a href="{{ route('follow', ['account_id' => $account['id']]) }}">
     39                         Follow
     40                     </a>
     41                 @endif
     42 	    </div>
     43 
     44             <h2>Statuses</h2>
     45 
     46             <ul>
     47                 @foreach ($statuses as $status)
     48                     @component('status', ['status' => $status])
     49                     @endcomponent
     50                 @endforeach
     51             </ul>
     52 
     53             @component('pagination', ['links' => $links])
     54             @endcomponent
     55         </div>
     56     </body>
     57 </html>