[MRM-1579] rewrite repositories scanning admin page

enabled/disabled invalid content consummers.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1298325 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-08 09:34:16 +00:00
parent 3f014126b0
commit f386ab53db
1 changed files with 26 additions and 14 deletions

View File

@ -216,19 +216,19 @@
<tbody>
{{each(i,knownAdminRepositoryConsumer) knownAdminRepositoryConsumers}}
<tr>
{{if knownAdminRepositoryConsumer.enabled()==true}}
<td>
<a href="#" data-bind="click: function(){ disableKnowContentConsumer(knownAdminRepositoryConsumer) }">
<img src="images/weather-clear-22-22.png"/>
</a>
</td>
{{else}}
<td>
<a href="#" data-bind="click: function(){ enableKnowContentConsumer(knownAdminRepositoryConsumer) }">
<img src="images/dialog-error-22-22.png"/>
</a>
</td>
{{/if}}
{{if knownAdminRepositoryConsumer.enabled()==true}}
<td>
<a href="#" data-bind="click: function(){ disableKnowContentConsumer(knownAdminRepositoryConsumer) }">
<img src="images/weather-clear-22-22.png"/>
</a>
</td>
{{else}}
<td>
<a href="#" data-bind="click: function(){ enableKnowContentConsumer(knownAdminRepositoryConsumer) }">
<img src="images/dialog-error-22-22.png"/>
</a>
</td>
{{/if}}
<td>${knownAdminRepositoryConsumer.id}</td>
<td>${knownAdminRepositoryConsumer.description}</td>
@ -253,7 +253,19 @@
<tbody>
{{each(i,invalidAdminRepositoryConsumer) invalidAdminRepositoryConsumers}}
<tr>
<td>${invalidAdminRepositoryConsumer.enabled}</td>
{{if invalidAdminRepositoryConsumer.enabled()==true}}
<td>
<a href="#" data-bind="click: function(){ disableInvalidContentConsumer(invalidAdminRepositoryConsumer) }">
<img src="images/weather-clear-22-22.png"/>
</a>
</td>
{{else}}
<td>
<a href="#" data-bind="click: function(){ enableInvalidContentConsumer(invalidAdminRepositoryConsumer) }">
<img src="images/dialog-error-22-22.png"/>
</a>
</td>
{{/if}}
<td>${invalidAdminRepositoryConsumer.id}</td>
<td>${invalidAdminRepositoryConsumer.description}</td>
</tr>