Author: kbettinger
Date: 2010-02-02 13:49:04 +0100 (Tue, 02 Feb 2010)
New Revision: 40782

Modified:
   
CMSContainer/branches/b1_7/CMSContainer_Demo/demo.cmscontainer.org/war/src/webapp/WEB-INF/templates/layout/demo/includes/header.jsp
Log:
CMSC-1565

Modified: 
CMSContainer/branches/b1_7/CMSContainer_Demo/demo.cmscontainer.org/war/src/webapp/WEB-INF/templates/layout/demo/includes/header.jsp
===================================================================
--- 
CMSContainer/branches/b1_7/CMSContainer_Demo/demo.cmscontainer.org/war/src/webapp/WEB-INF/templates/layout/demo/includes/header.jsp
 2010-02-02 12:16:52 UTC (rev 40781)
+++ 
CMSContainer/branches/b1_7/CMSContainer_Demo/demo.cmscontainer.org/war/src/webapp/WEB-INF/templates/layout/demo/includes/header.jsp
 2010-02-02 12:49:04 UTC (rev 40782)
@@ -13,8 +13,16 @@
   <cmsc:insert-stylesheet var="stylesheet" />
   <link rel="stylesheet" type="text/css" href="<cmsc:staticurl 
page='/css/stijl.css'/>" media="screen,projection,print" />
   <c:forEach var="style" items="${stylesheet}">
-    <link rel="stylesheet" type="text/css" href="<cmsc:staticurl 
page='/${style.resource}'/>" media="${style.media}" />
+  <c:choose>  
+    <c:when test="${empty style.resource}"> 
+      <link rel="stylesheet" type="text/css" 
href="${pageContext.request.contextPath}/stylesheet/${style.id}.css" 
media="${style.media}" />
+    </c:when> 
+    <c:otherwise>
+      <link rel="stylesheet" type="text/css" href="<cmsc:staticurl 
page='/${style.resource}'/>" media="${style.media}" />
+    </c:otherwise>
+  </c:choose>   
   </c:forEach>
+  
   <!--[if IE]>
      <link rel="stylesheet" type="text/css" href="<cmsc:staticurl 
page='/css/stijl_ie.css'/>" media="screen,projection,print" />
   <![endif]-->

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to