| 1 | {@ include(common/header) @} |
| 2 | {@ include(gitler/repohead) @} |
| 3 | <h2 class="paragraph">全般</h2> |
| 4 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-form"> |
| 5 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 6 | <label>説明:<input type="text" name="description" value="{{ $meta['description'] }}" maxlength="500" /></label> |
| 7 | <label><input type="checkbox" name="private" value="1"{{{ $meta['private'] ? ' checked="checked"' : '' }}} /> 非公開</label> |
| 8 | {@ if (!empty($branches)) @} |
| 9 | <label>既定のブランチ: |
| 10 | <select name="branch"> |
| 11 | {@ foreach ($branches as $b) @} |
| 12 | <option value="{{ $b }}"{{{ $b === $currentBranch ? ' selected="selected"' : '' }}}>{{ $b }}</option> |
| 13 | {@ endforeach @} |
| 14 | </select> |
| 15 | </label> |
| 16 | {@ endif @} |
| 17 | <button name="do" value="general">保存</button> |
| 18 | </form> |
| 19 | |
| 20 | <h2 class="paragraph">共同作業者</h2> |
| 21 | {@ if (empty($collaborators)) @} |
| 22 | <p class="paragraph">共同作業者は居ません。</p> |
| 23 | {@ endif @} |
| 24 | <ul class="gl-keys"> |
| 25 | {@ foreach ($collaborators as $who => $perm) @} |
| 26 | <li> |
| 27 | <a href="/gitler/{{ $who }}">{{ $who }}</a>({{ $perm === 'write' ? '読み書き' : '読むだけ' }}) |
| 28 | <form method="post" action="{{ $repoUrl }}/settings"> |
| 29 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 30 | <input type="hidden" name="username" value="{{ $who }}" /> |
| 31 | <button name="do" value="removeCollaborator" class="danger">削除</button> |
| 32 | </form> |
| 33 | </li> |
| 34 | {@ endforeach @} |
| 35 | </ul> |
| 36 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-row"> |
| 37 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 38 | <input type="text" name="username" placeholder="ユーザー名" required="required" /> |
| 39 | <select name="permission"> |
| 40 | <option value="read">読むだけ</option> |
| 41 | <option value="write">読み書き</option> |
| 42 | </select> |
| 43 | <button name="do" value="addCollaborator">追加</button> |
| 44 | </form> |
| 45 | |
| 46 | <h2 class="paragraph">イシュー・プルリクエストとFediverse</h2> |
| 47 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-form"> |
| 48 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 49 | <label><input type="checkbox" name="issues" value="1"{{{ $meta['issues'] ? ' checked="checked"' : '' }}} /> イシューを使う</label> |
| 50 | <label><input type="checkbox" name="pulls" value="1"{{{ $meta['pulls'] ? ' checked="checked"' : '' }}} /> プルリクエストを使う</label> |
| 51 | {@ if ($fediAvailable) @} |
| 52 | <label><input type="checkbox" name="federate" value="1"{{{ $meta['federate'] ? ' checked="checked"' : '' }}} /> 公開のリポジトリならFediverseに出す({{ $fediHandle }})</label> |
| 53 | {@ endif @} |
| 54 | <button name="do" value="issues">保存</button> |
| 55 | </form> |
| 56 | {@ if ($fediOn) @} |
| 57 | <p class="paragraph">Mastodon等から<code>{{ $fediHandle }}</code>をフォローするとイシューが届き、返信するとコメントになります。リポジトリをメンションした投稿は新しいイシューになります。フォロワー:{{ $followerCount }}人</p> |
| 58 | <h3 class="paragraph">ブロック</h3> |
| 59 | <ul class="gl-keys"> |
| 60 | {@ foreach (array_merge($blocks['actors'], $blocks['domains']) as $b) @} |
| 61 | <li> |
| 62 | {{ $b }} |
| 63 | <form method="post" action="{{ $repoUrl }}/settings"> |
| 64 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 65 | <input type="hidden" name="target" value="{{ $b }}" /> |
| 66 | <button name="do" value="unblock">外す</button> |
| 67 | </form> |
| 68 | </li> |
| 69 | {@ endforeach @} |
| 70 | </ul> |
| 71 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-row"> |
| 72 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 73 | <input type="text" name="target" placeholder="@user@example.com又はexample.com" required="required" /> |
| 74 | <button name="do" value="block" class="danger">ブロック</button> |
| 75 | </form> |
| 76 | {@ endif @} |
| 77 | |
| 78 | <h2 class="paragraph">アーカイブ</h2> |
| 79 | {@ if ($archived) @} |
| 80 | <p class="paragraph">アーカイブされています。解除するとプッシュやイシューの変更が出来る様になります。</p> |
| 81 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-row"> |
| 82 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 83 | <button name="do" value="unarchive">アーカイブを解除</button> |
| 84 | </form> |
| 85 | {@ else @} |
| 86 | <p class="paragraph">読むだけにします(プッシュ、イシュー・コメント・ラベル等の変更、Fediverseからのコメントを止める)。何時でも解除出来ます。</p> |
| 87 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-row"> |
| 88 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 89 | <label><input type="checkbox" name="confirm" value="1" required="required" /> 確認</label> |
| 90 | <button name="do" value="archive" class="danger">アーカイブする</button> |
| 91 | </form> |
| 92 | {@ endif @} |
| 93 | |
| 94 | <h2 class="paragraph">整理</h2> |
| 95 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-row"> |
| 96 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 97 | <button name="do" value="gc">今すぐ整理する(git gc)</button> |
| 98 | </form> |
| 99 | |
| 100 | <h2 class="paragraph">名前の変更</h2> |
| 101 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-row"> |
| 102 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 103 | <input type="text" name="name" value="{{ $name }}" required="required" /> |
| 104 | <button name="do" value="rename">名前を変える</button> |
| 105 | </form> |
| 106 | |
| 107 | <h2 class="paragraph">削除</h2> |
| 108 | <p class="paragraph">元に戻せません。確認の為、「{{ $owner }}/{{ $name }}」と入力して下さい。</p> |
| 109 | <form method="post" action="{{ $repoUrl }}/settings" class="gl-row"> |
| 110 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 111 | <input type="text" name="confirm" required="required" /> |
| 112 | <button name="do" value="delete" class="danger">リポジトリを削除</button> |
| 113 | </form> |
| 114 | {@ include(common/footer) @} |