master
ブランチ master
LittleBeast / view / gitler / blob.maron
1.5 KB、39行 生 Blame 履歴
1{@ include(common/header) @}
2{@ include(gitler/repohead) @}
3{@ include(gitler/refbar) @}
4 <div class="gl-filebar">
5 <span>{{ $size }}{{ $lineCount > 0 ? '、'.$lineCount.'行' : '' }}</span>
6 <span>
7{@ if (isset($plainUrl)) @}
8 <a href="{{ $plainUrl }}">ソース</a>
9{@ endif @}
10{@ if (isset($renderUrl)) @}
11 <a href="{{ $renderUrl }}">表示</a>
12{@ endif @}
13 <a href="{{ $rawUrl }}">生</a>
14 <a href="{{ $blameUrl }}">Blame</a>
15 <a href="{{ $historyUrl }}">履歴</a>
16 </span>
17 </div>
18{@ if ($kind === 'text') @}
19 <div class="gl-code">
20 <table class="gl-lines">
21 <tbody>
22{@ foreach ($lines as $i => $l) @}
23 <tr id="L{{ $i + 1 }}"><td class="gl-ln"><a href="#L{{ $i + 1 }}">{{ $i + 1 }}</a></td><td class="gl-src">{{{ $l === '' ? ' ' : $l }}}</td></tr>
24{@ endforeach @}
25 </tbody>
26 </table>
27 </div>
28{@ elif ($kind === 'markdown') @}
29 <div class="gl-readme">{{{ $html }}}</div>
30{@ elif ($kind === 'image') @}
31 <p class="gl-image"><img src="{{ $rawUrl }}" alt="{{ $path }}" /></p>
32{@ elif ($kind === 'link') @}
33 <p class="paragraph">シンボリックリンク:<code>{{ $target }}</code></p>
34{@ elif ($kind === 'large') @}
35 <p class="paragraph">大き過ぎるので表示しません(<a href="{{ $rawUrl }}">生のファイル</a>)。</p>
36{@ else @}
37 <p class="paragraph">バイナリファイルです(<a href="{{ $rawUrl }}">ダウンロード</a>)。</p>
38{@ endif @}
39{@ include(common/footer) @}