From 838b6e957be7c24b54c493d48b8a5e30a05e93be Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 12 Sep 2012 20:45:39 +0000 Subject: [PATCH] [MRM-648] Add description field to the different types of repositories and proxies implements UI for remote repositories. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384118 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/repositories.js | 13 +++++++++---- .../js/templates/archiva/repositories.html | 18 +++++++++++++++--- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index 39abea99c..1397aee43 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -552,7 +552,8 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery RemoteRepository=function(id,name,layout,indexDirectory,url,userName,password,timeout,downloadRemoteIndex,remoteIndexUrl, - remoteDownloadNetworkProxyId,cronExpression,remoteDownloadTimeout,downloadRemoteIndexOnStartup){ + remoteDownloadNetworkProxyId,cronExpression,remoteDownloadTimeout,downloadRemoteIndexOnStartup, + description){ var self=this; @@ -589,7 +590,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery this.timeout.subscribe(function(newValue){self.modified(true)}); //private boolean downloadRemoteIndex = false; - this.downloadRemoteIndex=ko.observable(downloadRemoteIndex); + this.downloadRemoteIndex=ko.observable(downloadRemoteIndex?false:downloadRemoteIndex); this.downloadRemoteIndex.subscribe(function(newValue){self.modified(true)}); //private String remoteIndexUrl = ".index"; @@ -609,9 +610,12 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery this.remoteDownloadTimeout.subscribe(function(newValue){self.modified(true)}); //private boolean downloadRemoteIndexOnStartup = false; - this.downloadRemoteIndexOnStartup=ko.observable(downloadRemoteIndexOnStartup); + this.downloadRemoteIndexOnStartup=ko.observable(downloadRemoteIndexOnStartup?false:downloadRemoteIndexOnStartup); this.downloadRemoteIndexOnStartup.subscribe(function(newValue){self.modified(true)}); + this.description=ko.observable(description); + this.description.subscribe(function(newValue){self.modified(true)}); + this.getTypeLabel=function(){ for(var i=0;i -
-
@@ -379,6 +377,14 @@ {{else}} {{/if}} + + {{if row.description()}} + + + + {{/if}} + @@ -485,7 +491,6 @@
-
@@ -494,6 +499,13 @@
+
+ +
+ +
+
+ -- 2.39.5