master
ブランチ master
LittleBeast / view / microblog / note.maron
1.4 KB、37行 生 Blame 履歴
1{@ include(common/header) @}
2{@ include(microblog/nav) @}
3{@ foreach ($ancestors as $it) @}
4 <div class="mb-ancestor">
5{@ include(microblog/item) @}
6 </div>
7{@ endforeach @}
8 <div class="mb-focus">
9{$ $it = $item $}
10{@ include(microblog/item) @}
11 </div>
12{@ if ($me && !$item['mine']) @}
13 <details class="mb-report">
14 <summary>この投稿を通報する</summary>
15 <form method="post" action="/microblog/action">
16 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
17 <input type="hidden" name="back" value="{{ $here }}" />
18 <input type="hidden" name="target" value="{{ $item['author']['url'] }}" />
19 <input type="hidden" name="object" value="{{ $item['id'] }}" />
20 <textarea name="comment" rows="2" maxlength="1000" placeholder="理由(任意)"></textarea>
21{@ if (!str_starts_with($item['author']['page'], '/microblog/user/')) @}
22 <label><input type="checkbox" name="forward" value="1" checked="checked" /> 相手のサーバーの管理者にも送る</label>
23{@ endif @}
24 <button name="do" value="report">通報</button>
25 </form>
26 </details>
27{@ endif @}
28{@ include(microblog/compose) @}
29{@ if (!empty($replies)) @}
30 <h2 class="paragraph">返信</h2>
31{@ foreach ($replies as $it) @}
32 <div class="mb-replyitem">
33{@ include(microblog/item) @}
34 </div>
35{@ endforeach @}
36{@ endif @}
37{@ include(common/footer) @}