From 0545fbf9f430125ec82567a46e560e3f96f61248 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Sun, 10 May 2020 19:33:35 +0200
Subject: [PATCH] format table with bootstrap

---
 inventory_provider/static/update.html | 16 +++++++++-------
 inventory_provider/static/update.js   |  2 +-
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/inventory_provider/static/update.html b/inventory_provider/static/update.html
index 18be17d9..0d615b21 100644
--- a/inventory_provider/static/update.html
+++ b/inventory_provider/static/update.html
@@ -29,13 +29,15 @@
           {{ update_request_status }}
         </div>
 
-        <div class="grid-item" ng-show="latch_error||latch_pending">
-          <table>
+        <span class="grid-item" ng-show="latch_error||latch_pending">
+          <table class="table table-striped">
             <tr>
-              <th>name</th>
-              <th>status</th>
-              <th>success</th>
-              <th>message</th>
+              <th colspan="4" scope="col">update tasks</th>
+            <tr>
+              <th scope="col">name</th>
+              <th scope="col">status</th>
+              <th scope="col">success</th>
+              <th scope="col">message</th>
             </tr>
             <tr ng-repeat="t in tasks">
               <td>{{ t.name }}</td>
@@ -44,7 +46,7 @@
               <td>{{ t.message }}</td>
             </tr>
           </table>
-        </div>
+        </span>
 
       </div>
     </div>
diff --git a/inventory_provider/static/update.js b/inventory_provider/static/update.js
index 2c3e779a..64e68073 100644
--- a/inventory_provider/static/update.js
+++ b/inventory_provider/static/update.js
@@ -57,7 +57,7 @@ myApp.controller('update', function($scope, $http, $timeout) {
                     parent: t.parent,
                     status: t.status,
                     success: t.ready ? (t.success ? "OK" : "NO") : "-",
-                    message: (t.result && t.result.message) ? t.result.message.substring(0,30) : "",
+                    message: (t.result && t.result.message) ? t.result.message.substring(0,100) : "",
                     name: t.result ? t.result.task : "",
                 }));
             },
-- 
GitLab