Apply tweaks from seven++ for DreamHAET
Tomas Doran [Sun, 21 Feb 2010 21:28:31 +0000 (21:28 +0000)]
root/inc/syntax_highlight_css.tt2
root/nav/path.tt2

index 5fc9dad..71a132f 100644 (file)
@@ -1 +1,2 @@
-[%- 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 -%]
index eef339c..4c19eb9 100644 (file)
@@ -2,6 +2,10 @@
  <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>