]> source.dussan.org Git - archiva.git/commitdiff
add link if available in artifact info block
authorOlivier Lamy <olamy@apache.org>
Mon, 27 Feb 2012 00:56:00 +0000 (00:56 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 27 Feb 2012 00:56:00 +0000 (00:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293980 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html

index 574ebea20d762544784904723f461369e894c977..f9d698a212ab230d9ed826275024d5a5a1d2b523 100644 (file)
@@ -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
index 4efd7d34d3450dd4f04957ef598f31a7f7e020c9..8a13996be3a6081363f5731eb6923d58fccae02a 100644 (file)
           {{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}}
       </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