mirror of https://github.com/apache/archiva.git
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
This commit is contained in:
parent
710489fc72
commit
04a065a53a
|
@ -409,6 +409,9 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.deleteKarma = hasKarma('archiva-delete-artifact');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
displayArtifactFilesContent=function(self){
|
displayArtifactFilesContent=function(self){
|
||||||
|
|
|
@ -843,7 +843,11 @@
|
||||||
<ul id="artifact-download-list-files">
|
<ul id="artifact-download-list-files">
|
||||||
{{each(i, row) artifacts()}}
|
{{each(i, row) artifacts()}}
|
||||||
<li>
|
<li>
|
||||||
<a href="#" data-bind="click: function(){deleteArtifact(row)}">del</a>:<a href="${row.url}">${row.packaging}:${row.version} - ${row.size}</a>
|
{{if deleteKarma}}
|
||||||
|
<a href="#" data-bind="click: function(){deleteArtifact(row)}">del</a>:<a href="${row.url}">${row.packaging}:${row.version} - ${row.size}</a>
|
||||||
|
{{else}}
|
||||||
|
<a href="${row.url}">${row.packaging}:${row.version} - ${row.size}</a>
|
||||||
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue