]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1579] rewrite repositories scanning admin page
authorOlivier Lamy <olamy@apache.org>
Thu, 8 Mar 2012 09:30:41 +0000 (09:30 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 8 Mar 2012 09:30:41 +0000 (09:30 +0000)
use accordion for file types.

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

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

index 9ee933ba59ae4659065c89688932ccdb688e2c1d..2df39e00ea0719cd066e0037bcfc5906447171e4 100644 (file)
 </script>
 
 <script id="file-types-tmpl" type="text/html">
-  <!-- accordion ?? -->
+<div class="accordion" id="accordion-file-types">
   <div class="span4">
   {{each(i, fileType) fileTypes}}
-    <div class="page-header">
-      <h4>${fileType.id}</h4>
+  <div class="accordion-group">
+    <div class="accordion-heading">
+      <a class="accordion-toggle" href="#collapse-pattern-${fileType.id}"
+         data-parent="#accordion-file-types" data-toggle="collapse">${fileType.id}&nbsp;<i class="icon-resize-vertical"/></a>
     </div>
+    <div id="collapse-pattern-${fileType.id}" class="accordion-body collapse">
     <table class="table table-condensed">
       {{each(j,pattern) fileType.patterns}}
       <tr>
         </td>
       </tr>
     </table>
+    </div>
+  </div>
   {{/each}}
   </div>
+</div>
 </script>