-[%- IF language %]<link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/syntax/' _ language _ '.css') %]"/>[% END -%]
+[%- IF language == 'Diff' %]<link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/syntax/Diff.css') %]"/>[% END -%]
+[%- IF language == 'Perl' %]<link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/syntax/Perl.css') %]"/>[% END -%]
<a href="[% c.uri_for("tree", {hb=head.sha1}) %]">[% Repository.name %]</a>
[% FOREACH part IN filename.split('/') %]
[% path = loop.first ? part : path _ '/' _ part %]
- / <a href="[% c.uri_for(loop.last ? 'blob' : 'tree', {hb=head.sha1,f=path}) %]">[% part %]</a>
+ [% IF loop.last %]
+ / <a href="[% c.uri_for('blob', {hb=head.sha1,f=path}) %]">[% part %]</a>
+ [% ELSE %]
+ / <a href="[% c.uri_for('tree', {hb=head.sha1,f=path}) %]">[% part %]</a>
+ [% END %]
[% END %]
</div>