- From: Mercurial notifier <nobody@w3.org>
- Date: Fri, 27 Mar 2015 10:51:49 +0000
- To: Unicorn Updates <www-validator-cvs@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