summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-02-27 00:56:00 +0000
committerOlivier Lamy <olamy@apache.org>2012-02-27 00:56:00 +0000
commit9423b6e869790bda904eaef903c6caa12d75e3f5 (patch)
tree17a994621fc97cb98b602e91afa04923dfdbbf25 /archiva-modules
parentb2d5f97603c49a482de5a6b83f642ccf80c02344 (diff)
downloadarchiva-9423b6e869790bda904eaef903c6caa12d75e3f5.tar.gz
archiva-9423b6e869790bda904eaef903c6caa12d75e3f5.zip
add link if available in artifact info block
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293980 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js2
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html13
2 files changed, 13 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
index 574ebea20..f9d698a21 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
@@ -409,7 +409,7 @@ $(function() {
//-----------------------------------------
displaySearch=function(){
- $("#main-content" ).html("coming soon :-)");
+ $("#main-content" ).html($("#search-artifacts-form" ).tmpl());
}
}); \ No newline at end of file
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 4efd7d34d..8a13996be 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
@@ -115,7 +115,11 @@
{{if projectVersionMetadata.organization}}
<tr>
<th>${$.i18n.prop('browse.artifact.organization.name')}</th>
- <td>${projectVersionMetadata.organization.name}</td>
+ {{if projectVersionMetadata.organization.url}}
+ <td><a href="${projectVersionMetadata.organization.url}" target="_blank">${projectVersionMetadata.organization.name}</a></td>
+ {{else}}
+ <td>${projectVersionMetadata.organization.name}</td>
+ {{/if}}
</tr>
{{/if}}
{{if projectVersionMetadata.issueManagement}}
@@ -140,4 +144,11 @@
</ul>
</div>
</div>
+</script>
+
+<script id="search-artifacts-form" type="text/html">
+ <div class="page-header">
+ <h3>${$.i18n.prop('search.artifact.header')}</h3>
+ </div>
+ here
</script> \ No newline at end of file