Assume UTF8 encoded blobs.
[catagits/Gitalist.git] / root / fragment / ref / blob.tt2
CommitLineData
e172b6b8 1[%- IF is_image -%]
2<div class='blob'><img src="[% c.uri_for_action('/ref/raw', c.req.captures, filename) %]" title="[% filename %]"></div>
3[%- ELSIF is_binary -%]
4<div class='blob'>This is a binary file which won't render natively on the web, but you can get it here all the same: <a href="[% c.uri_for_action('/ref/raw', c.req.captures, filename) %]" title="[% filename %]">[% filename %]</a></div>
5[%- ELSE -%]
b4ecc157 6[%- INCLUDE inc/syntax_highlight_css.tt2 -%]
606ffc33 7[%- USE UTF8Decode -%]
8<pre class='blob'>[% IF mangled; blob; ELSE; blob | utf8_decode | html; END; %]</pre>
e172b6b8 9[%- END -%]