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

2006/unicorn/WebContent/WEB-INF/resources/templates/includes unicorn_macros.vm,NONE,1.1.2.1 head.vm,1.1.2.2,1.1.2.3 parameters.vm,1.1.2.3,1.1.2.4 footer.vm,1.1.2.6,1.1.2.7

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 24 Aug 2009 09:17:49 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MfVgU-000077-05@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes
In directory hutz:/tmp/cvs-serv338/WebContent/WEB-INF/resources/templates/includes

Modified Files:
      Tag: dev2
	head.vm parameters.vm footer.vm 
Added Files:
      Tag: dev2
	unicorn_macros.vm 
Log Message:
updated interface

--- NEW FILE: unicorn_macros.vm ---
#macro(createDropdown $param $multiple)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span> 
	<select name="$param.Name" #if($multiple) multiple="multiple" size="3" #end>
#foreach ($value in $param.getMapOfValue())
		<option value="$value.Name"#if($defaults.containsKey($value.getName())) selected="selected" #end>$value.getLongName($lang)</option>
#end
	</select>
</label> 
#end

#macro(createCheckboxList $param)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span></label> 
<span class="checkboxlist">
#foreach ($value in $param.getMapOfValue())
	<label>$value.getLongName($lang)
		<input type="checkbox" name="$param.getName()" value="$value.getName()"#if($defaults.containsKey($value.getName())) checked="checked" #end/>
	</label>
#end
</span>
#end

#macro(createParameter $param)
#set($type = $param.getType())
#if($type == "CHECKBOXLIST")
#createCheckboxList($param)
#elseif($type == "DROPDOWN")
#createDropdown($param, false)
#elseif($type == "DROPDOWNLIST")
#createDropdown($param, true)
#end
#end
Index: parameters.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes/Attic/parameters.vm,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- parameters.vm	21 Aug 2009 07:04:45 -0000	1.1.2.3
+++ parameters.vm	24 Aug 2009 09:17:47 -0000	1.1.2.4
@@ -1,32 +1,30 @@
 #set ($simple_parameters = $current_task.getMapOfParameter("simple"))
 #set ($advanced_parameters = $current_task.getMapOfParameter("advanced"))
-
 #if ($simple_parameters.size() > 0)
-					<fieldset  class="options"><!-- id="opt_$param_suffix" -->
+<fieldset class="options $current_task.getID()">
 						<legend>Options</legend>
 						<div class="options">
 							<ul>
 #foreach ($param in $simple_parameters)
 								<li>
-									#createParameter($param)
+#createParameter($param)
 								</li>
 #end
 							</ul>
 						</div>
 					</fieldset>
 #end
-
 #if ($advanced_parameters.size() > 0)
-					<fieldset  class="options slide"><!-- id="extra_opt_$param_suffix" -->
-						<legend class="toggletext" title="Show/Hide extra options">$extra_options</legend>
+<fieldset class="options advanced $current_task.getID()">
+						<legend title="Show/Hide extra options">$extra_options</legend>
 						<div class="options">
 							<ul>
 #foreach ($param in $advanced_parameters)
 								<li>
-									#createParameter($param)
+#createParameter($param)
 								</li>
 #end
 							</ul>
 						</div>
-					</fieldset>
+</fieldset>
 #end
\ No newline at end of file

Index: head.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes/Attic/head.vm,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- head.vm	14 Aug 2009 11:33:38 -0000	1.1.2.2
+++ head.vm	24 Aug 2009 09:17:47 -0000	1.1.2.3
@@ -5,20 +5,21 @@
 	<title>$title</title>
 	<link rev="start" href="./" title="Home Page" />
 #foreach( $sheet in $css )
-	<style type="text/css" media="all">@import "./style/$sheet";</style>
+	<link href="./style/$sheet" type="text/css" media="screen" rel="stylesheet" />
 #end
 #foreach( $script in $js )
 	<script type="text/javascript" src="$script"></script>
 #end
+	
 	<link rev="made" href="mailto:www-validator@w3.org" />
 	<link rel="shortcut icon" href="http://www.w3.org/2008/site/images/favicon.ico" type="image/x-icon" />
 	<link rev="start" href="./" title="Home Page" />
 </head>
 <body>
 	<div id="banner">
-		<h1 id="title">
+		<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 - ALPHA Test Version</span></a>
 		</h1>
-		<p id="tagline">The Web's Universal Conformance Checker</p>
+		<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/Attic/footer.vm,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- footer.vm	21 Aug 2009 15:33:56 -0000	1.1.2.6
+++ footer.vm	24 Aug 2009 09:17:47 -0000	1.1.2.7
@@ -1,7 +1,7 @@
-	<ul class="navbar" id="menu">
-			<li><a href="http://www.w3.org/QA/2006/obs_framework/" title="$documentation_title">$documentation</a> <span class="hideme">|</span></li>
-			<li><a href="http://dev.w3.org/cvsweb/2006/unicorn/" title="$download_title">$download</a> <span class="hideme">|</span></li>
-			<li><a href="mailto:public-qa-dev@w3.org" title="$feedback_title">$feedback</a> <span class="hideme">|</span></li>
+	<ul id="menu">
+			<li><a href="http://www.w3.org/QA/2006/obs_framework/" title="$documentation_title">$documentation</a></li>
+			<li><a href="http://dev.w3.org/cvsweb/2006/unicorn/" title="$download_title">$download</a></li>
+			<li><a href="mailto:public-qa-dev@w3.org" title="$feedback_title">$feedback</a></li>
 	</ul>
 	<ul id="lang_choice">
 #foreach( $key in $languages.keySet() )
Received on Monday, 24 August 2009 09:18:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC