| 1 | {@ if ($me) @} |
| 2 | <form class="mb-compose" method="post" action="/microblog/post" enctype="multipart/form-data" id="reply"> |
| 3 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 4 | <input type="hidden" name="back" value="{{ $here }}" /> |
| 5 | {@ if ($replyTo) @} |
| 6 | <input type="hidden" name="inReplyTo" value="{{ $replyTo }}" /> |
| 7 | <p class="mb-small">返信</p> |
| 8 | {@ endif @} |
| 9 | <input type="text" name="cw" maxlength="200" placeholder="注意書き(任意。入力すると本文が隠れます)" value="{{ $draftCw }}" /> |
| 10 | <textarea name="content" rows="4" maxlength="{{ $maxLength }}" placeholder="いまどうしてる?">{{ $draft !== '' ? $draft : $replyText }}</textarea> |
| 11 | <details> |
| 12 | <summary>画像・動画を添付({{ $maxMedia }}つまで。画像はPNG・JPEG・GIF・WebPで{{ \Std\Lib\Fedi\Media::MAX_BYTES >> 20 }}MiB、動画はMP4・MKV・WebMで{{ \Std\Lib\Fedi\Media::MAX_VIDEO_BYTES >> 20 }}MiBまで)</summary> |
| 13 | {@ for ($i = 0; $i < $maxMedia; $i++) @} |
| 14 | <div class="mb-file"> |
| 15 | <input type="file" name="media[]" accept="image/png,image/jpeg,image/gif,image/webp,video/mp4,video/matroska,video/webm" /> |
| 16 | <input type="text" name="alt[]" maxlength="1500" placeholder="説明(代替テキスト)" /> |
| 17 | </div> |
| 18 | {@ endfor @} |
| 19 | </details> |
| 20 | <div class="mb-compose-bottom"> |
| 21 | <select name="visibility"> |
| 22 | {@ foreach ($visibilities as $vk => $vl) @} |
| 23 | <option value="{{ $vk }}"{{{ $vk === $replyVis ? ' selected="selected"' : '' }}}>{{ $vl }}</option> |
| 24 | {@ endforeach @} |
| 25 | </select> |
| 26 | <button>投稿</button> |
| 27 | </div> |
| 28 | </form> |
| 29 | {@ endif @} |