| 1 | {@ include(common/header) @} |
| 2 | {@ include(microblog/nav) @} |
| 3 | <h1 class="paragraph">Fediverseの管理</h1> |
| 4 | {@ if ($error) @} |
| 5 | <div class="errormes">{{ $error }}</div> |
| 6 | {@ endif @} |
| 7 | <p class="paragraph">配信待ち:{{ $queue }}件(cronのapdeliverが送ります)</p> |
| 8 | <h2 class="paragraph">ブロックしているサーバー</h2> |
| 9 | <p class="paragraph mb-small">ブロックしたサーバー(とそのサブドメイン)からは何も受け取らず、何も送りません。</p> |
| 10 | {@ foreach ($domains as $d) @} |
| 11 | <div class="mb-row"> |
| 12 | {{ $d }} |
| 13 | <form method="post" action="/microblog/admin"> |
| 14 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 15 | <input type="hidden" name="domain" value="{{ $d }}" /> |
| 16 | <button name="do" value="unblockinstance">解除</button> |
| 17 | </form> |
| 18 | </div> |
| 19 | {@ endforeach @} |
| 20 | <form class="mb-row" method="post" action="/microblog/admin"> |
| 21 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 22 | <input type="text" name="domain" placeholder="example.com" /> |
| 23 | <button name="do" value="blockinstance" class="danger">サーバーをブロック</button> |
| 24 | </form> |
| 25 | <h2 class="paragraph">通報</h2> |
| 26 | {@ if (empty($reports)) @} |
| 27 | <p class="paragraph">通報はありません。</p> |
| 28 | {@ endif @} |
| 29 | {@ foreach ($reports as $r) @} |
| 30 | <div class="mb-report-item{{ $r['resolved'] ? ' resolved' : '' }}"> |
| 31 | <p> |
| 32 | {{ $r['at'] }}:<a href="{{ $r['fromWho']['page'] }}">{{ $r['fromWho']['handle'] }}</a>{{ $r['remote'] ? '(他のサーバー)' : '' }}から |
| 33 | <a href="{{ $r['actorWho']['page'] }}">{{ $r['actorWho']['handle'] }}</a>への通報{{ $r['resolved'] ? '(対応済み)' : '' }} |
| 34 | </p> |
| 35 | {@ if ($r['content'] !== '') @} |
| 36 | <blockquote>{{ $r['content'] }}</blockquote> |
| 37 | {@ endif @} |
| 38 | {@ foreach ($r['objectPages'] as $op) @} |
| 39 | <a href="{{ $op }}" class="mb-small">対象の投稿</a> |
| 40 | {@ endforeach @} |
| 41 | {@ if (!$r['resolved']) @} |
| 42 | <form method="post" action="/microblog/admin"> |
| 43 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 44 | <input type="hidden" name="id" value="{{ $r['id'] }}" /> |
| 45 | <button name="do" value="resolve">対応済みにする</button> |
| 46 | </form> |
| 47 | {@ endif @} |
| 48 | </div> |
| 49 | {@ endforeach @} |
| 50 | {@ include(common/footer) @} |