master
ブランチ master
LittleBeast / view / gitler / commit.maron
1.9 KB、43行 生 Blame 履歴
1{@ include(common/header) @}
2{@ include(gitler/repohead) @}
3 <div class="gl-commit">
4 <h2>{{ $c['subject'] }}</h2>
5{@ if ($body !== '') @}
6 <pre class="gl-body">{{ $body }}</pre>
7{@ endif @}
8 <p>
9 {{ $c['author'] }} &lt;{{ $c['email'] }}&gt;、{{ $c['date'] }}{{ $signed ? '(署名あり)' : '' }}<br />
10 コミット <code>{{ $c['id'] }}</code>
11{@ foreach ($parents as $p) @}
12 ・親 <a href="{{ $p['url'] }}"><code>{{ $p['short'] }}</code></a>
13{@ endforeach @}
14 ・<a href="{{ $treeUrl }}">ファイルを見る</a>
15 </p>
16 <p>{{ $stats['files'] }}個のファイル、<span class="gl-add">+{{ $stats['add'] }}</span> <span class="gl-del">-{{ $stats['del'] }}</span>{{ $truncated ? '(多過ぎるので途中まで)' : '' }}</p>
17 </div>
18{@ foreach ($files as $f) @}
19 <div class="gl-diff">
20 <div class="gl-diff-head">
21 <span class="gl-st gl-st-{{ $f['status'] }}">{{ $f['statusText'] }}</span>
22 {{ $f['oldPath'] !== '' ? $f['oldPath'].' → ' : '' }}{@ if ($f['url'] !== '') @}<a href="{{ $f['url'] }}">{{ $f['path'] }}</a>{@ else @}{{ $f['path'] }}{@ endif @}
23 </div>
24{@ if ($f['note'] !== '') @}
25 <p class="gl-note">{{ $f['note'] }}</p>
26{@ endif @}
27{@ if (!empty($f['hunks'])) @}
28 <div class="gl-code">
29 <table class="gl-lines">
30 <tbody>
31{@ foreach ($f['hunks'] as $h) @}
32 <tr class="gl-hunk"><td class="gl-ln"></td><td class="gl-ln"></td><td class="gl-src">{{ $h['head'] }}</td></tr>
33{@ foreach ($h['rows'] as $r) @}
34 <tr class="{{ $r['op'] === '+' ? 'gl-line-add' : ($r['op'] === '-' ? 'gl-line-del' : '') }}"><td class="gl-ln">{{ $r['old'] }}</td><td class="gl-ln">{{ $r['new'] }}</td><td class="gl-src">{{ $r['op'] }}{{ $r['text'] }}</td></tr>
35{@ endforeach @}
36{@ endforeach @}
37 </tbody>
38 </table>
39 </div>
40{@ endif @}
41 </div>
42{@ endforeach @}
43{@ include(common/footer) @}