W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/WebContent/WEB-INF/resources/templates/includes head.vm,1.8,1.9 footer.vm,1.4,1.5

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 23 Sep 2009 16:59:11 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MqVBP-0005Kl-W4@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes
In directory hutz:/tmp/cvs-serv20466/WebContent/WEB-INF/resources/templates/includes

Modified Files:
	head.vm footer.vm 
Log Message:
added baseUri before images/stylesheets/scripts links to allow absolute URIs

Index: head.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes/head.vm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- head.vm	11 Sep 2009 10:07:55 -0000	1.8
+++ head.vm	23 Sep 2009 16:59:09 -0000	1.9
@@ -3,25 +3,25 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$lang" lang="$lang">
 <head>
 	<title>$noEscape_title</title>
-	<link rev="start" href="./" title="Home Page" />
+	<link rev="start" href="$!{baseUri}" title="Home Page" />
 #foreach( $sheet in $css )
-	<link href="./style/$sheet" type="text/css" media="screen" rel="stylesheet" />
+	<link href="$!{baseUri}style/$sheet" type="text/css" media="screen" rel="stylesheet" />
 #end
 #foreach( $script in $js )
-	<script type="text/javascript" src="$script"></script>
+	<script type="text/javascript" src="$!{baseUri}scripts/$script"></script>
 #end
 	<link rev="made" href="mailto:www-validator@w3.org" />
 #if ($fav)
-	<link rel="icon" href="/unicorn/images/$fav" type="image/x-icon" />
+	<link rel="icon" href="$!{baseUri}images/$fav" type="image/x-icon" />
 #else
-	<link rel="icon" href="/unicorn/images/favicon.ico" type="image/x-icon" />
+	<link rel="icon" href="$!{baseUri}images/favicon.ico" type="image/x-icon" />
 #end
 </head>
 <body>
 	<div id="banner">
 		<h1>
-			<a href="http://www.w3.org/"><img alt="W3C" width="110" height="61" id="logo" src="images/w3c.png" /></a>
-			<a href="./"><span>Unicorn</span></a>
+			<a href="http://www.w3.org/"><img alt="W3C" width="110" height="61" id="logo" src="$!{baseUri}images/w3c.png" /></a>
+			<a href="$!{baseUri}"><span>Unicorn</span></a>
 		</h1>
 		<p>The Web's Universal Conformance Checker</p>
 	</div>
\ No newline at end of file

Index: footer.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes/footer.vm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- footer.vm	3 Sep 2009 14:04:12 -0000	1.4
+++ footer.vm	23 Sep 2009 16:59:09 -0000	1.5
@@ -17,15 +17,15 @@
 	<div id="footer">
 		<p id="activity_logos">
 			<a href="http://www.w3.org/QA/" title="W3C's Quality Assurance Activity, bringing you free Web quality tools and more">
-				<img src="images/qa-small.png" alt="QA" />
+				<img src="$!{baseUri}images/qa-small.png" alt="QA" />
 			</a>
 			<a href="http://dev.w3.org/cvsweb/2006/unicorn/" title="Download the code">
-				<img src="images/opensource-75x65.png" alt="Open Source" height="48"/>
+				<img src="$!{baseUri}images/opensource-75x65.png" alt="Open Source" height="48"/>
 			</a>
 		</p>
 		<p id="support_logo">
 			<a href="http://www.w3.org/QA/Tools/Donate">
-				<img src="images/I_heart_validator.png" alt="I heart Validator logo" title=" Validators Donation Program" />
+				<img src="$!{baseUri}images/I_heart_validator.png" alt="I heart Validator logo" title=" Validators Donation Program" />
 			</a>
 		</p>
 		<p class="copyright">
Received on Wednesday, 23 September 2009 16:59:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT