| 1 | <div class="gl-issuehead"> |
| 2 | <h2>{{ $issue['title'] }} <span class="gl-muted">#{{ $issue['number'] }}</span></h2> |
| 3 | <p> |
| 4 | <span class="gl-statebadge gl-badge-{{ $merged ? 'merged' : $issue['state'] }}">{{ $merged ? '⛙ マージ済み' : ($issue['state'] === 'open' ? '● 開いている' : '✓ 閉じた') }}</span> |
| 5 | <a href="{{ $who['url'] }}">{{ $who['name'] }}</a>が<code>{@ if ($headUrl !== '') @}<a href="{{ $headUrl }}">{{ $headLabel }}</a>{@ else @}{{ $headLabel }}{@ endif @}</code>から<code>{{ $pull['base'] }}</code>に{{ $commitCount }}個のコミットを{{ $merged ? 'マージしました' : 'マージしたい' }} |
| 6 | </p> |
| 7 | {@ if (!empty($canEdit)) @} |
| 8 | <details class="gl-edit"> |
| 9 | <summary>編集</summary> |
| 10 | <form method="post" action="{{ $pullUrl }}" class="gl-form gl-issueform"> |
| 11 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 12 | <input type="text" name="title" value="{{ $issue['title'] }}" maxlength="200" required="required" /> |
| 13 | {@ if (empty($issue['html'])) @} |
| 14 | <textarea name="body" rows="12">{{ $issue['body'] }}</textarea> |
| 15 | {@ endif @} |
| 16 | <button name="do" value="edit">保存</button> |
| 17 | </form> |
| 18 | </details> |
| 19 | {@ endif @} |
| 20 | <nav class="gl-tabs gl-subtabs"> |
| 21 | <a href="{{ $pullUrl }}" class="{{ $tab === 'conversation' ? 'active' : '' }}">会話({{ count(array_filter($issue['comments'], fn($c) => empty($c['pending']))) }})</a> |
| 22 | <a href="{{ $commitsTabUrl }}" class="{{ $tab === 'commits' ? 'active' : '' }}">コミット({{ $commitCount }})</a> |
| 23 | <a href="{{ $filesTabUrl }}" class="{{ $tab === 'files' ? 'active' : '' }}">変更されたファイル</a> |
| 24 | </nav> |
| 25 | </div> |