From: Olivier Lamy Date: Fri, 5 Oct 2012 13:43:20 +0000 (+0000) Subject: add link to user documentation on archiva website X-Git-Tag: archiva-1.4-M4~828 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1137adb735caf82658680c0517a55a1b40cff6a;p=archiva.git add link to user documentation on archiva website git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1394518 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js index e0fe2be9d..518e5fb99 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js @@ -59,6 +59,7 @@ define("archiva.docs",["jquery","i18n","jquery.tmpl","bootstrap"], function() { displayUsersDocs=function(){ $.log("displayUsersDocs"); + window.open(""); } }); \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js index 885e04613..9685961c5 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js @@ -198,8 +198,8 @@ function(jquery,ui,sammy,tmpl) { this.docsMenuItems = [ { text : $.i18n.prop('menu.docs') , id: null}, - { text : $.i18n.prop('menu.docs.rest') , id: "menu-docs-rest-list-a", href: "#docs-rest", func: function(){displayRestDocs()}}, - { text : $.i18n.prop('menu.docs.users') , id: "menu-docs-users-list-a", href: "#docs-users" , func: function(){displayUsersDocs()}} + { text : $.i18n.prop('menu.docs.rest') , id: "menu-docs-rest-list-a", href: "#docs-rest", target: "", func: function(){displayRestDocs()}}, + { text : $.i18n.prop('menu.docs.users') , id: "menu-docs-users-list-a", href: "http://archiva.apache.org/docs/"+window.archivaRuntimeInfo.version, target: "_blank", func: function(){displayUsersDocs()}} ]; this.activeMenuId = ko.observable(); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/menu.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/menu.html index f1ab8fd68..438188a96 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/menu.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/menu.html @@ -58,7 +58,7 @@
  • - +