From: Olivier Lamy Date: Wed, 21 Mar 2012 15:04:33 +0000 (+0000) Subject: take care of empty values and add i18n X-Git-Tag: archiva-1.4-M3~987 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15b9c6ddc2b30af2814a8fdc5d426f8a8561cb97;p=archiva.git take care of empty values and add i18n git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1303423 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties index e31854a35..e449c2239 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties @@ -277,6 +277,8 @@ browse.artifact.mailingList.mainArchiveUrl=Main archive browse.artifact.mailingList.otherArchivesUrls=Other Archives browse.artifact.mailingList.unsubscribe=Unsubscribe browse.artifact.mailingList.subscribe=Subscribe +browse.artifact.mailingList.none=No mailing lists found. +browse.artifact.dependencies.none=No dependencies found. #login login.username.placehoder=Username diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html index d70ce230c..5f75fc32c 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html @@ -572,6 +572,7 @@
+ {{if projectVersionMetadata.dependencies && projectVersionMetadata.dependencies.length>0}} {{each(i,dependency) projectVersionMetadata.dependencies}} @@ -599,6 +600,9 @@ {{/each}} + {{else}} + ${$.i18n.prop('browse.artifact.dependencies.none')} + {{/if}}
${dependency.artifactId}
@@ -612,7 +616,7 @@
- {{if projectVersionMetadata.mailingLists}} + {{if projectVersionMetadata.mailingLists && projectVersionMetadata.mailingLists.length>0}}
{{each(i,mailingList) projectVersionMetadata.mailingLists}}
@@ -625,11 +629,27 @@
{{/if}}
-
${$.i18n.prop('browse.artifact.mailingList.subscribe')}: ${mailingList.subscribeAddress}
-
${$.i18n.prop('browse.artifact.mailingList.post')}: ${mailingList.postAddress}
-
${$.i18n.prop('browse.artifact.mailingList.unsubscribe')}: ${mailingList.unsubscribeAddress}
-
${$.i18n.prop('browse.artifact.mailingList.mainArchiveUrl')}: ${mailingList.mainArchiveUrl}
- {{if mailingList.otherArchives}} + {{if mailingList.subscribeAddress}} +
+ ${$.i18n.prop('browse.artifact.mailingList.subscribe')}: ${mailingList.subscribeAddress} +
+ {{/if}} + {{if mailingList.postAddress}} +
+ ${$.i18n.prop('browse.artifact.mailingList.post')}: ${mailingList.postAddress} +
+ {{/if}} + {{if mailingList.unsubscribeAddress}} +
+ ${$.i18n.prop('browse.artifact.mailingList.unsubscribe')}: ${mailingList.unsubscribeAddress} +
+ {{/if}} + {{if mailingList.mainArchiveUrl}} +
+ ${$.i18n.prop('browse.artifact.mailingList.mainArchiveUrl')}: ${mailingList.mainArchiveUrl} +
+ {{/if}} + {{if mailingList.otherArchives && mailingList.otherArchives.length>0}}
${$.i18n.prop('browse.artifact.mailingList.otherArchivesUrls')}:
    @@ -644,6 +664,8 @@
{{/each}}
+ {{else}} + ${$.i18n.prop('browse.artifact.mailingList.none')} {{/if}}