master
ブランチ master
LittleBeast / view / microblog / blocks.maron
1.7 KB、37行 生 Blame 履歴
1{@ include(common/header) @}
2{@ include(microblog/nav) @}
3 <h1 class="paragraph">ブロック</h1>
4 <h2 class="paragraph">アカウント</h2>
5{@ if (empty($actors)) @}
6 <p class="paragraph">ブロックしているアカウントはありません。</p>
7{@ endif @}
8{@ foreach ($actors as $a) @}
9 <div class="mb-row">
10 <a href="{{ $a['who']['page'] }}">{{{ $a['who']['color'] }}}</a> <span class="mb-handle">{{ $a['who']['handle'] }}</span>
11 <form method="post" action="/microblog/action">
12 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
13 <input type="hidden" name="back" value="/microblog/blocks" />
14 <input type="hidden" name="target" value="{{ $a['actor'] }}" />
15 <button name="do" value="unblock">解除</button>
16 </form>
17 </div>
18{@ endforeach @}
19 <h2 class="paragraph">ドメイン</h2>
20{@ foreach ($domains as $d) @}
21 <div class="mb-row">
22 {{ $d }}
23 <form method="post" action="/microblog/action">
24 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
25 <input type="hidden" name="back" value="/microblog/blocks" />
26 <input type="hidden" name="target" value="{{ $d }}" />
27 <button name="do" value="unblockdomain">解除</button>
28 </form>
29 </div>
30{@ endforeach @}
31 <form class="mb-row" method="post" action="/microblog/action">
32 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
33 <input type="hidden" name="back" value="/microblog/blocks" />
34 <input type="text" name="target" placeholder="example.com" />
35 <button name="do" value="blockdomain" class="danger">ドメインをブロック</button>
36 </form>
37{@ include(common/footer) @}