Scarab commit: svn commit: r11053 - trunk/src/webapp/WEB-INF/templates/layouts/Default.vm

[email protected] Wed, 16 Nov 2011 09:00:19 -0800 (PST)
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2011-11-16 09:00:18-0800
New Revision: 11053

Modified:
   trunk/src/webapp/WEB-INF/templates/layouts/Default.vm

Log:
added new property scarab.site.style to allow multiple style support on same instance. added property scarab.product.log for easy replacement of the product logo

Modified: trunk/src/webapp/WEB-INF/templates/layouts/Default.vm
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/webapp/WEB-INF/templates/layouts/Default.vm?view=diff&pathrev=11053&r1=11052&r2=11053
==============================================================================
--- trunk/src/webapp/WEB-INF/templates/layouts/Default.vm	(original)
+++ trunk/src/webapp/WEB-INF/templates/layouts/Default.vm	2011-11-16 09:00:18-0800
@@ -13,7 +13,9 @@
     #if ($updateFrequency && $updateFrequency.length() > 0)
       <meta http-equiv="refresh" content="$updateFrequency" />
     #end
-    <link rel="stylesheet" type="text/css" href="$staticLink.setPath("/skins/classic.css")" />
+
+    #set ($style_file = "/skins/#getProperty('scarab.site.style').css")
+    <link rel="stylesheet" type="text/css" href="$staticLink.setPath($style_file)" />
     <link rel="stylesheet" type="text/css" href="$staticLink.setPath("/skins/custom.css")" />
 
     <script src="$staticLink.setPath("/scripts/debug.js")" type="text/javascript"></script>
@@ -194,7 +196,10 @@
    <table>
     <tr>
      <td>
-      <a href="$link.setPage("Index.vm")"><img src="$staticLink.setPath("/images/logo.gif")" alt="Scarab" width="118" height="23" border="0" /></a>
+      #set ($productLogo = "#getProperty('scarab.product.logo')")
+      #if ($productLogo.length() > 0)
+      <a href="$link.setPage("Index.vm")"><img src="$staticLink.setPath("$productLogo")" alt="$productLogo" width="118" height="23" border="0" /></a>
+      #end
      </td>
      <td valign="middle">
       <table border="0" cellpadding="0" cellspacing="0">

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2878899