planiverse

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

show_status.blade.php (1814B)


      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 }} | Status</title>
      9 
     10         <link rel="stylesheet" href="{{ url('css/styles.css') }}" />
     11     </head>
     12     <body>
     13         <h1>{{ $mastodon_domain }} | Status</h1>
     14 
     15         @component('navigation')
     16         @endcomponent
     17 
     18         <ul>
     19             @component('status', ['status' => $status])
     20             @endcomponent
     21         </ul>
     22 
     23         @if ($logged_in)
     24             <form method="post" action="{{ route('post_status') }}">
     25                 <input
     26                     type="text"
     27                     name="spoiler_text"
     28                     placeholder="Spoiler/Warning"
     29                     value="{{ $status['spoiler_text'] }}"
     30                 />
     31                 <textarea rows="4" name="status" placeholder="Reply" required autofocus>{{ $reply_mentions }} </textarea>
     32                 <select name="visibility">
     33                     <option value="public" @if ($status['visibility'] === 'public') selected @endif>Public</option>
     34                     <option value="unlisted" @if ($status['visibility'] === 'unlisted') selected @endif>Unlisted</option>
     35                     <option value="private" @if ($status['visibility'] === 'private') selected @endif>Private</option>
     36                     <option value="direct" @if ($status['visibility'] === 'direct') selected @endif>Direct</option>
     37                 </select>
     38                 <input type="submit" value="Post" />
     39                 <input type="hidden" name="in_reply_to_id" value="{{ $status['id'] }}" />
     40                 {{ csrf_field() }}
     41             </form>
     42         @endif
     43     </body>
     44 </html>