Fix final bits of stylesheets for not having to be based at /
Tomas Doran [Mon, 2 Nov 2009 22:52:56 +0000 (22:52 +0000)]
root/_diff.tt2
root/default.tt2

index a2c93df..869e0ee 100644 (file)
@@ -1,4 +1,4 @@
-<link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/>
+<link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/syntax/' + language + '.css') %]"/>
 [% FOREACH item IN diff %]
 <div class='diff-head'>
  diff --git
index 74971a1..8e3ce99 100644 (file)
   [% IF baseurl %]
   <base href="[% baseurl %]" />
   [% END %]
-  <link rel="stylesheet" href="/static/css/blueprint/screen.css" type="text/css" media="screen, projection">
-  <link rel="stylesheet" href="/static/css/blueprint/print.css" type="text/css" media="print">
+  <link rel="stylesheet" href="[% c.uri_for('/static/css/blueprint/screen.css') %]" type="text/css" media="screen, projection">
+  <link rel="stylesheet" href="[% c.uri_for('/static/css/blueprint/print.css') %]" type="text/css" media="print">
   <!--[if lt IE 8]>
-    <link rel="stylesheet" href="/static/css/blueprint/ie.css" type="text/css" media="screen, projection">
+    <link rel="stylesheet" href="[% c.uri_for('/static/css/blueprint/ie.css') %]" type="text/css" media="screen, projection">
   <![endif]-->  
-  <link rel="stylesheet" type="text/css" href="/static/css/site.css"/>
-  <link rel="stylesheet" type="text/css" href="[% stylesheet %]"/>
+  <link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/site.css') %]"/>
+  [% IF stylesheet %]<link rel="stylesheet" type="text/css" href="[% stylesheet %]"/>[% END %]
   [% FOR link IN links %]
             <link rel="[% link.rel %]"
                   title="[% link.title %]"