Merge branch 'devel' of h1dev:/srv/APKPM/
[APKPM.git] / public / gearman.html
index ef9f78a..6692a55 100644 (file)
@@ -11,7 +11,8 @@
           self.g = response;
         });
       }
-      this.status_update();
+       this.status_update();
+      setInterval( this.status_update, 5000 );
 
        var a = $location.hashPath.split('/');
        self.function_name = a[0];
     <button ng:click="fetch()">fetch</button>
     <button ng:click="clear()">clear</button>
 
+    <table ng:show="response.columns">
+    <tr><th ng:repeat="c in response.columns">{{c}}</th></tr>
+    <tr ng:repeat="r in response.rows">
+     <td ng:repeat="v in r">{{v}}</td>
+    </tr>
+    </table>
+
     <pre>
 url={{url}}
 code={{code}}
@@ -49,7 +57,7 @@ response={{response}}
 
 <table>
 <tr><th>function</th><th>total</th><th>running</th><th>available</th></tr>
-<tr ng:repeat="f in g.status">
+<tr ng:repeat="f in g.status.$orderBy('function')">
 <td>{{f.function}}</td>
 <td>{{f.total}}</td>
 <td>{{f.running}}</td>