Starting to hook up "orphaned" actions.
[catagits/Gitalist.git] / root / blob.tt2
1 <link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/>
2
3 [% PROCESS 'nav/actions.tt2' object = head %]
4 [% IF object.type == 'commit' %]
5 <div class='commit-message'>
6 [% head.comment.substr(0, 85) %] ...
7 </div>
8 [% END %]
9 <div class='path'>
10  <a href="[% c.uri_for("tree", {hb=head.sha1}) %]">[% Project.name %]</a>
11  [% # XXX The last part should link to blob_plain (or something) but doesn't ATM
12     FOREACH part IN filename.split('/') %]
13  / <a href="[% c.uri_for("tree", {hb=head.sha1}) %]">[% part %]</a>
14  [% END %]
15 </div>
16 <div>
17  <pre class='blob'>[% blob %]</pre>
18 </div>