master
ブランチ master
LittleBeast / view / gitler / labels.maron
2.2 KB、44行 生 Blame 履歴
1{@ include(common/header) @}
2{@ include(gitler/repohead) @}
3 <div class="gl-issuebar">
4 <span class="gl-states"><a href="{{ $repoUrl }}/issues">イシュー</a> <a href="{{ $repoUrl }}/labels" class="active">ラベル</a> <a href="{{ $repoUrl }}/milestones">マイルストーン</a></span>
5 </div>
6{@ if ($canTriage) @}
7 <details class="gl-edit">
8 <summary>+新しいラベル</summary>
9 <form method="post" action="{{ $repoUrl }}/labels" class="gl-row">
10 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
11 <input type="text" name="name" maxlength="50" placeholder="名前" required="required" />
12 <input type="color" name="color" value="#c016c6" />
13 <input type="text" name="description" maxlength="200" placeholder="説明" />
14 <button name="do" value="save">作る</button>
15 </form>
16 </details>
17{@ endif @}
18{@ if (empty($list)) @}
19 <p class="paragraph">ラベルは有りません。</p>
20{@ endif @}
21 <ul class="gl-issues">
22{@ foreach ($list as $l) @}
23 <li>
24 <a href="{{ $l['url'] }}" class="gl-label" style="background-color: {{ $l['color'] }}; color: {{ $l['fg'] }};">{{ $l['name'] }}</a>
25 <span>{{ $l['description'] }}</span>
26 <small><a href="{{ $l['url'] }}">開いているイシュー{{ $l['open'] }}件</a></small>
27{@ if ($canTriage) @}
28 <details class="gl-edit">
29 <summary>編集</summary>
30 <form method="post" action="{{ $repoUrl }}/labels" class="gl-row">
31 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
32 <input type="hidden" name="id" value="{{ $l['id'] }}" />
33 <input type="text" name="name" value="{{ $l['name'] }}" maxlength="50" required="required" />
34 <input type="color" name="color" value="{{ $l['color'] }}" />
35 <input type="text" name="description" value="{{ $l['description'] }}" maxlength="200" />
36 <button name="do" value="save">保存</button>
37 <button name="do" value="delete" class="danger">削除</button>
38 </form>
39 </details>
40{@ endif @}
41 </li>
42{@ endforeach @}
43 </ul>
44{@ include(common/footer) @}