]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1579] rewrite repositories scanning admin page
authorOlivier Lamy <olamy@apache.org>
Thu, 8 Mar 2012 09:34:16 +0000 (09:34 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 8 Mar 2012 09:34:16 +0000 (09:34 +0000)
enabled/disabled invalid content consummers.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1298325 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/general-admin.html

index 84ee3108c754ab75c84f5fa1f34cffca63e46565..69959ed7fbe93e084a98b1256a211ce95fe0c902 100644 (file)
     <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>
     <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>