| 1 | {@ include(common/header) @} |
| 2 | {@ include(gitler/repohead) @} |
| 3 | <div class="gl-issuehead"> |
| 4 | <h2>{{ $issue['title'] }} <span class="gl-muted">#{{ $issue['number'] }}</span></h2> |
| 5 | <p> |
| 6 | <span class="gl-statebadge gl-badge-{{ $issue['state'] }}">{{ $issue['state'] === 'open' ? '● 開いている' : '✓ 閉じた' }}</span> |
| 7 | <a href="{{ $who['url'] }}">{{ $who['name'] }}</a>{{ $who['handle'] !== '' ? '('.$who['handle'].')' : '' }}が{{ $date }}に作成、コメント{{ count($issue['comments']) }}件 |
| 8 | </p> |
| 9 | {@ if ($canEdit) @} |
| 10 | <details class="gl-edit"> |
| 11 | <summary>編集</summary> |
| 12 | <form method="post" action="{{ $issueUrl }}" class="gl-form gl-issueform"> |
| 13 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 14 | <input type="text" name="title" value="{{ $issue['title'] }}" maxlength="200" required="required" /> |
| 15 | {@ if (empty($issue['html'])) @} |
| 16 | <textarea name="body" rows="12">{{ $issue['body'] }}</textarea> |
| 17 | {@ endif @} |
| 18 | <button name="do" value="edit">保存</button> |
| 19 | </form> |
| 20 | </details> |
| 21 | {@ endif @} |
| 22 | </div> |
| 23 | {@ include(gitler/thread) @} |
| 24 | {@ include(common/footer) @} |