[gatewiki-commits] SF.net SVN: gatewiki:[1800] trunk/site-plugins/gau/grails-app/views/layouts /cowguest.gsp

View: New views
1 Messages — Rating Filter:   Alert me  

[gatewiki-commits] SF.net SVN: gatewiki:[1800] trunk/site-plugins/gau/grails-app/views/layouts /cowguest.gsp

by ian_roberts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 1800
          http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1800&view=rev
Author:   ian_roberts
Date:     2009-11-10 18:54:43 +0000 (Tue, 10 Nov 2009)

Log Message:
-----------
Horrible kludge to include the right tex4ht css file if we're looking at a user
guide page.  I'd like to just be able to copy in the relevant bits of the user
guide css into cowguest.gsp directly but the CSS includes various ID selectors
generated by tex4ht that may not be stable from one build to the next, so I've
had to reference the style sheet with a <link> tag wrapped in a <g:if>.

Modified Paths:
--------------
    trunk/site-plugins/gau/grails-app/views/layouts/cowguest.gsp

Modified: trunk/site-plugins/gau/grails-app/views/layouts/cowguest.gsp
===================================================================
--- trunk/site-plugins/gau/grails-app/views/layouts/cowguest.gsp 2009-11-10 11:36:41 UTC (rev 1799)
+++ trunk/site-plugins/gau/grails-app/views/layouts/cowguest.gsp 2009-11-10 18:54:43 UTC (rev 1800)
@@ -10,6 +10,20 @@
     <link rel="stylesheet"
       href="${createLinkTo(dir:'css',file:'prototip/prototip.css')}"
     />
+    <%--
+    Yes, this is horrible - special case to add an extra style sheet if we are
+    looking at a user guide page.  I would just copy the user guide CSS into
+    this layout but it contains various ID selectors that will change as the
+    HTML changes so we have to pull in the htlatex-generated CSS directly.
+    --%>
+    <g:if test="${wiki?.id == 2 && pagePath}">
+      <g:if test="${pagePath ==~ /\/sale\/tao\/split[^\/]*\.html/}">
+        <link rel="stylesheet" href="split.css" />
+      </g:if>
+      <g:if test="${pagePath ==~ /\/sale\/tao\/index\.html/}">
+        <link rel="stylesheet" href="tao_main.css" />
+      </g:if>
+    </g:if>
     <g:if test="${leftBar}">
       <!-- shift the top bar over to miss the left bar -->
       <style type="text/css" media="screen">


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits