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

2006/unicorn/WebContent/WEB-INF/resources/templates language.vm,1.12,1.13 language.mail.vm,1.2,1.3 index.vm,1.15,1.16 language.properties.vm,1.2,1.3 language.form.vm,1.3,1.4

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 09 Oct 2009 15:13:17 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MwH9h-00073f-52@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv27117/WebContent/WEB-INF/resources/templates

Modified Files:
	language.vm language.mail.vm index.vm language.properties.vm 
	language.form.vm 
Log Message:
do not display "referer" in the uri input 

Index: language.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.vm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- language.vm	7 Oct 2009 15:53:31 -0000	1.12
+++ language.vm	9 Oct 2009 15:13:14 -0000	1.13
@@ -36,7 +36,7 @@
 				<th scope="col">Property</th>
 			#foreach($prop in $languageProps)
 				#set($percent = 100 * $math.div($math.sub($prop.size(), 2), $math.sub($defaultProps.size(), 2)))
-				<th scope="col">$prop.get("language")<br />$percent.intValue()%</th>
+				<th scope="col">$prop.get("language") <a href="./translations?ucn_lang=$prop.get('lang')">Edit</a><br />$percent.intValue()%</th>
 			#end
 			</tr>
 		</thead>
@@ -49,7 +49,7 @@
 						#if($prop.get($key))
 						<td class="ok"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end>✔</span></td>
 						#{else}
-						<td class="missing"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end>✘</span></td>
+						<td class="missing"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end><a href="./translations?ucn_lang=$prop.get('lang')">✘</a></span></td>
 						#end
 					#end
 				</tr>

Index: language.properties.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.properties.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- language.properties.vm	9 Oct 2009 11:13:44 -0000	1.2
+++ language.properties.vm	9 Oct 2009 15:13:15 -0000	1.3
@@ -1 +1,3 @@
+#$Id$
+#
 $properties
\ No newline at end of file

Index: language.form.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.form.vm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- language.form.vm	7 Oct 2009 15:53:31 -0000	1.3
+++ language.form.vm	9 Oct 2009 15:13:15 -0000	1.4
@@ -10,21 +10,20 @@
 <div id="translations">
 	<form method="post" action="./translations">
 		
-		<fieldset>
+		<fieldset class="about_you">
 			<legend>About you</legend>
-			<label for="translator_name"><span style="min-width:7em; text-align:right;">Name</span><input type="text" name="translator_name" /></label><br />
-			<label for="translator_mail"><span style="min-width:7em; text-align:right;">Email address</span><input type="text" name="translator_mail" /></label><br />
-			<label for="translator_comments"><span style="min-width:7em; text-align:right;">Comments</span><textarea name="translator_comments" style="vertical-align:top" rows="5" cols="20"></textarea></label>
+			<label for="name"><span>Name<b style="color:red">*</b>:</span><input type="text" name="translator_name" id="name" size="50"/></label><br />
+			<label for="mail"><span>Email address<b style="color:red">*</b>:</span><input type="text" name="translator_mail" id="mail" size="50"/></label><br />
+			<label for="comments"><span>Comments:</span><textarea id="comments" name="translator_comments" rows="5" cols="20"></textarea></label>
 		</fieldset>
 		
-		<fieldset>
+		<fieldset class="translation">
 			<legend>Translation</legend>
 			
-			
 			<table style="width:100%">
 				<thead>
 					<tr>
-						<th scope="col" style="width:33%">$defaultProps.get("language") properties</th>
+						<th scope="col" class="first_col">$defaultProps.get("language") properties</th>
 						#set($percent = 100 * $math.div($math.sub($prop.size(), 2), $math.sub($defaultProps.size(), 2)))
 						<th scope="col">$prop.get("language") $percent.intValue()%</th>
 					</tr>
@@ -34,7 +33,7 @@
 						#if ($key != "lang" && $key != "language")
 						<tr>
 							<th class="property_name" scope="row">$key <p>$!esc.html($defaultProps.get($key))</p></th>
-							<td #if(!$prop.get($key))class="missing"#end><input style="padding:0.3em; width:98%" type="text" name="$prop.get('lang')_$key" value="$!esc.html($!prop.get($key))" /></td>
+							<td #if(!$prop.get($key))class="missing"#end><input type="text" name="$prop.get('lang')_$key" value="$!esc.html($!prop.get($key))" /></td>
 						</tr>
 						#end
 					#end

Index: index.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/index.vm,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- index.vm	7 Oct 2009 11:53:11 -0000	1.15
+++ index.vm	9 Oct 2009 15:13:14 -0000	1.16
@@ -40,7 +40,7 @@
 						<p class="instructions">$instruction-by-uri</p>
 						<p>
 							<label title="$uri_title" for="ucn_uri"><span>$uri_label</span>
-								<input type="text" name="${param_prefix}uri" id="ucn_uri" size="45" value="$!param_uri"/>
+								<input type="text" name="${param_prefix}uri" id="ucn_uri" size="45" value="#if($param_uri && $param_uri!='referer')$!param_uri#end"/>
 							</label>
 						</p>
 					</div>

Index: language.mail.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.mail.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- language.mail.vm	9 Oct 2009 11:13:44 -0000	1.2
+++ language.mail.vm	9 Oct 2009 15:13:14 -0000	1.3
@@ -2,7 +2,7 @@
 New translation in $language#else
 Updated $language translation#end
 
-Submitter: $translator_name ($translator_mail)
+Submitter: $translator_name <$translator_mail>
 #if($translator_comments)
 Submitter comments:
 $translator_comments
Received on Friday, 9 October 2009 15:13:18 UTC

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