master
ブランチ master
LittleBeast / view / microblog / profile.maron
4.5 KB、90行 生 Blame 履歴
1{@ include(common/header) @}
2{@ include(microblog/nav) @}
3 <section class="mb-profile">
4 <img src="{{ $profile['avatar'] }}" alt="" class="mb-avatar-large" />
5 <div>
6 <h1>{{{ $profile['color'] }}}{{ $profile['locked'] ? ' 🔒' : '' }}</h1>
7 <p class="mb-handle">{{ $profile['handle'] }}</p>
8{@ if ($profile['bio'] !== '') @}
9 <div class="mb-bio">{{{ $profile['bio'] }}}</div>
10{@ endif @}
11 <p class="mb-small">
12{@ if ($profile['followers'] !== null) @}
13{@ if ($relation['self']) @}
14 <a href="/microblog/follows">フォロワー {{ $profile['followers'] }} · フォロー {{ $profile['following'] }}</a> ·
15{@ else @}
16 フォロワー {{ $profile['followers'] }} · フォロー {{ $profile['following'] }} ·
17{@ endif @}
18{@ endif @}
19{@ if ($profile['profilePage'] !== '') @}
20 <a href="{{ $profile['profilePage'] }}">プロフィール</a>
21{@ endif @}
22{@ if (!$profile['local']) @}
23 · <a href="/microblog/remote?actor={{ rawurlencode($profile['url']) }}&amp;refresh=1">更新</a>
24{@ endif @}
25 </p>
26{@ if ($relation['can'] && !$relation['self']) @}
27 <p class="mb-small">{{ $relation['followsYou'] ? 'あなたをフォローしています' : '' }}</p>
28 <div class="mb-actions">
29 <form method="post" action="/microblog/action">
30 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
31 <input type="hidden" name="back" value="{{ $here }}" />
32 <input type="hidden" name="target" value="{{ $profile['url'] }}" />
33{@ if ($relation['blocked']) @}
34 <button name="do" value="unblock">ブロックを解除</button>
35{@ else @}
36{@ if ($relation['following'] || $relation['pending']) @}
37 <button name="do" value="unfollow">{{ $relation['pending'] ? 'リクエストを取り消す' : 'フォロー解除' }}</button>
38{@ else @}
39 <button name="do" value="follow" class="on">フォロー</button>
40{@ endif @}
41{@ if ($relation['followsYou']) @}
42 <button name="do" value="removefollower">フォロワーから外す</button>
43{@ endif @}
44{@ endif @}
45 </form>
46{@ if (!$relation['blocked']) @}
47 <details class="mb-confirm">
48 <summary>ブロック・通報</summary>
49 <form method="post" action="/microblog/action">
50 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
51 <input type="hidden" name="back" value="{{ $here }}" />
52 <input type="hidden" name="target" value="{{ $profile['url'] }}" />
53 <button name="do" value="block" class="danger">ブロック</button>
54 </form>
55{@ if ($relation['remote']) @}
56 <form method="post" action="/microblog/action">
57 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
58 <input type="hidden" name="back" value="{{ $here }}" />
59 <input type="hidden" name="target" value="{{ $relation['domain'] }}" />
60 <button name="do" value="blockdomain" class="danger">{{ $relation['domain'] }}を全部ブロック</button>
61 </form>
62{@ endif @}
63 <form method="post" action="/microblog/action">
64 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
65 <input type="hidden" name="back" value="{{ $here }}" />
66 <input type="hidden" name="target" value="{{ $profile['url'] }}" />
67 <textarea name="comment" rows="2" maxlength="1000" placeholder="通報の理由(任意)"></textarea>
68{@ if ($relation['remote']) @}
69 <label><input type="checkbox" name="forward" value="1" checked="checked" /> 相手のサーバーの管理者にも送る</label>
70{@ endif @}
71 <button name="do" value="report">通報</button>
72 </form>
73 </details>
74{@ endif @}
75 </div>
76{@ endif @}
77 </div>
78 </section>
79{@ if (!empty($blogActor)) @}
80 <p class="paragraph">このサイトのブログのアカウントです。新しい記事を自動で投稿します。記事は<a href="/">ブログ</a>でお読み下さい(マイクロブログからはフォロー出来ません)。</p>
81{@ elif (empty($items)) @}
82 <p class="paragraph">表示出来る投稿はありません。</p>
83{@ endif @}
84{@ foreach ($items as $it) @}
85{@ include(microblog/item) @}
86{@ endforeach @}
87{@ if ($next) @}
88 <p class="mb-more"><a href="{{ $next }}">古い投稿</a></p>
89{@ endif @}
90{@ include(common/footer) @}