| 1 | {@ include(gitler/nav) @} |
| 2 | <div class="gl-repohead"> |
| 3 | <h1><a href="/gitler/{{ $owner }}">{{ $owner }}</a> / <a href="{{ $repoUrl }}">{{ $name }}</a>{{{ $meta['private'] ? ' <span class="gl-badge">非公開</span>' : '' }}}{{{ $archived ? ' <span class="gl-badge">アーカイブ</span>' : '' }}}</h1> |
| 4 | {@ if ($watch !== '') @} |
| 5 | <details class="gl-watch"> |
| 6 | <summary>通知:{{ $watch === 'watching' ? 'ウォッチ中' : ($watch === 'ignoring' ? '無視' : '参加しているイシューだけ') }}</summary> |
| 7 | <form method="post" action="{{ $repoUrl }}/watch"> |
| 8 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 9 | <input type="hidden" name="back" value="{{ $here }}" /> |
| 10 | <button name="state" value="participating"{{{ $watch === 'participating' ? ' class="active"' : '' }}}>参加しているイシューだけ</button> |
| 11 | <button name="state" value="watching"{{{ $watch === 'watching' ? ' class="active"' : '' }}}>ウォッチ(新しいイシューと全部の動き)</button> |
| 12 | <button name="state" value="ignoring"{{{ $watch === 'ignoring' ? ' class="active"' : '' }}}>無視(何も受け取らない)</button> |
| 13 | </form> |
| 14 | </details> |
| 15 | {@ endif @} |
| 16 | {@ if ($archived) @} |
| 17 | <p class="gl-archived">このリポジトリはアーカイブされています。読むだけで、プッシュやイシューの変更は出来ません。</p> |
| 18 | {@ endif @} |
| 19 | {@ if ($meta['description'] !== '') @} |
| 20 | <p class="gl-desc">{{ $meta['description'] }}</p> |
| 21 | {@ endif @} |
| 22 | <p class="gl-forkinfo"> |
| 23 | {@ if ($forkOf !== '') @} |
| 24 | フォーク元:<a href="/gitler/{{ $forkOf }}">{{ $forkOf }}</a> |
| 25 | {@ if ($parentCompare !== '') @} |
| 26 | ・<a href="{{ $parentCompare }}">フォーク元にプルリクエストを作る</a> |
| 27 | {@ endif @} |
| 28 | {@ endif @} |
| 29 | {@ if ($forkCount > 0) @} |
| 30 | <a href="{{ $repoUrl }}/forks">フォーク{{ $forkCount }}個</a> |
| 31 | {@ endif @} |
| 32 | {@ if ($canFork) @} |
| 33 | <form method="post" action="{{ $repoUrl }}/fork" class="gl-inlineform"> |
| 34 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 35 | <button>フォークする</button> |
| 36 | </form> |
| 37 | {@ endif @} |
| 38 | </p> |
| 39 | <nav class="gl-tabs"> |
| 40 | <a href="{{ $treeRoot }}" class="{{ in_array($gitView, ['gitler/tree', 'gitler/blob', 'gitler/blame', 'gitler/empty'], true) ? 'active' : '' }}">ファイル</a> |
| 41 | {@ if ($issuesOn) @} |
| 42 | <a href="{{ $repoUrl }}/issues" class="{{ in_array($gitView, ['gitler/issues', 'gitler/issue', 'gitler/issuenew', 'gitler/labels', 'gitler/milestones'], true) && empty($isPull) ? 'active' : '' }}">イシュー({{ $openIssues }})</a> |
| 43 | {@ endif @} |
| 44 | {@ if ($pullsOn) @} |
| 45 | <a href="{{ $repoUrl }}/pulls" class="{{ ($gitView === 'gitler/issues' && !empty($isPull)) || in_array($gitView, ['gitler/pull', 'gitler/pullcommits', 'gitler/pullfiles', 'gitler/compare'], true) ? 'active' : '' }}">プルリクエスト({{ $openPulls }})</a> |
| 46 | {@ endif @} |
| 47 | {@ if ($commitsUrl !== '') @} |
| 48 | <a href="{{ $commitsUrl }}" class="{{ in_array($gitView, ['gitler/commits', 'gitler/commit'], true) ? 'active' : '' }}">コミット</a> |
| 49 | <a href="{{ $repoUrl }}/branches" class="{{ $gitView === 'gitler/branches' ? 'active' : '' }}">ブランチ({{ count($branches) }})</a> |
| 50 | <a href="{{ $repoUrl }}/tags" class="{{ $gitView === 'gitler/tags' ? 'active' : '' }}">タグ({{ count($tags) }})</a> |
| 51 | {@ endif @} |
| 52 | {@ if ($canAdmin) @} |
| 53 | <a href="{{ $repoUrl }}/settings" class="{{ $gitView === 'gitler/settings' ? 'active' : '' }}">設定</a> |
| 54 | {@ endif @} |
| 55 | </nav> |
| 56 | </div> |