diff options
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js | 5 |
1 files changed, 4 insertions, 1 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 8fd0b496e..99c2e73c3 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 @@ -34,7 +34,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery ManagedRepository=function(id,name,layout,indexDirectory,location,snapshots,releases,blockRedeployments,cronExpression, scanned,daysOlder,retentionCount,deleteReleasedSnapshots,stageRepoNeeded,description, - skipPackedIndexCreation,feedsUrl){ + skipPackedIndexCreation,feedsUrl,url){ var self=this; @@ -105,6 +105,8 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery this.feedsUrl=feedsUrl; + this.url=url; + this.getTypeLabel=function(){ for(var i=0;i<window.managedRepositoryTypes.length;i++){ if (window.managedRepositoryTypes[i].type==self.layout()){ @@ -154,6 +156,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery var mappedManagedRepositories = $.map(data, function(item) { var managedRepository = mapManagedRepository(item); managedRepository.feedsUrl=applicationUrl+"/feeds/"+managedRepository.id(); + managedRepository.url=applicationUrl+"/repository/"+managedRepository.id() return managedRepository; }); return mappedManagedRepositories; |