render columns and rows gearman resposes as table
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 19 Mar 2011 11:30:00 +0000 (11:30 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 19 Mar 2011 11:30:00 +0000 (11:30 +0000)
public/gearman.html

index 696c12d..67bf5a5 100644 (file)
     <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}}