From 04a065a53a34630bd6013fcd08e4711168f97111 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 5 Jun 2012 23:17:37 +0000 Subject: do not show del link if user do not have karma git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1346652 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-webapp-js/src/main/webapp/js/archiva/search.js | 3 +++ .../src/main/webapp/js/templates/archiva/search.html | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'archiva-modules') 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 13d048086..cf0c0da0c 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,6 +409,9 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock }); } + + this.deleteKarma = hasKarma('archiva-delete-artifact'); + } displayArtifactFilesContent=function(self){ diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html index 35a0bf1ca..c82be8893 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html @@ -843,7 +843,11 @@ -- cgit v1.2.3