W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2015

unicorn commit: remove edit link if translations are deactivated

From: Mercurial notifier <nobody@w3.org>
Date: Fri, 27 Mar 2015 10:51:49 +0000
To: Unicorn Updates <www-validator-cvs@w3.org>
Message-Id: <E1YbRrh-0001eU-8B@mcbain.w3.org>
changeset:   1742:c482f6a9a7be
tag:         tip
user:        Jean-Guilhem Rouel <jean-gui@w3.org>
date:        Fri Mar 27 11:51:42 2015 +0100
files:       WebContent/WEB-INF/resources/templates/language.vm
description:
remove edit link if translations are deactivated


diff -r eb3b6a3dfa34 -r c482f6a9a7be WebContent/WEB-INF/resources/templates/language.vm
--- a/WebContent/WEB-INF/resources/templates/language.vm	Fri Mar 27 11:31:17 2015 +0100
+++ b/WebContent/WEB-INF/resources/templates/language.vm	Fri Mar 27 11:51:42 2015 +0100
@@ -64,7 +64,12 @@
 				#set($meta = $metadataProps.get($locale))
 				#set($percent = 100 * $math.div($math.add($prop.size(), $meta.size()), $math.add($defaultProps.size(), $defaultMetadata.size())))
 				#set($localeKey = $strUtils.replace($locale.getName(), '_', '-'))
-				<th scope="col">$strUtils.capitalize($locale.getDisplayName($defaultLocale))<br /><span lang="$localeKey" xml:lang="$localeKey">$strUtils.capitalize($locale.getDisplayName($locale))</span><br />$percent.intValue()%<br /><a href="./translations?ucn_lang=$locale.getName()">Edit</a></th>
+				<th scope="col">
+          $strUtils.capitalize($locale.getDisplayName($defaultLocale))<br /><span lang="$localeKey" xml:lang="$localeKey">$strUtils.capitalize($locale.getDisplayName($locale))</span><br />$percent.intValue()%<br />
+          #if ($enable_translation_contribs)
+            <a href="./translations?ucn_lang=$locale.getName()">Edit</a>
+          #end
+        </th>
 			#end
 			#end
 			</tr>
@@ -106,4 +111,4 @@
 	</table>
 </div>
 
-#parse('footer.vm')
\ No newline at end of file
+#parse('footer.vm')
Received on Friday, 27 March 2015 10:51:55 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 March 2015 10:51:56 UTC