| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>command_wrapper.py log</title> | 3 <title>command_wrapper.py log</title> |
| 4 <style> | 4 <style> |
| 5 table { | 5 table { |
| 6 font:normal 76%/150% "Lucida Grande", "Lucida Sans Unicode", Verdana, | 6 font:normal 76%/150% "Lucida Grande", "Lucida Sans Unicode", Verdana, |
| 7 Arial, Helvetica, sans-serif; | 7 Arial, Helvetica, sans-serif; |
| 8 border-collapse:separate; | 8 border-collapse:separate; |
| 9 border-spacing:0; | 9 border-spacing:0; |
| 10 margin:0 0 1em; | 10 margin:0 0 1em; |
| 11 color:#000; | 11 color:#000; |
| 12 } | 12 } |
| 13 th { | 13 th { |
| 14 font-weight:bold; | 14 font-weight:bold; |
| 15 line-height:normal; | 15 line-height:normal; |
| 16 padding:0.25em 0.5em; | 16 padding:0.25em 0.5em; |
| 17 text-align:left; | 17 text-align:left; |
| 18 } | 18 } |
| 19 td { | 19 td { |
| 20 padding:0.25em 0.5em; | 20 padding:0.25em 0.5em; |
| 21 text-align:left; | 21 text-align:left; |
| 22 vertical-align:top; | 22 vertical-align:top; |
| 23 border-style: solid; |
| 24 border-width: 1px; |
| 23 } | 25 } |
| 24 </style> | 26 </style> |
| 25 </head> | 27 </head> |
| 26 <body> | 28 <body> |
| 27 <h1>command_wrapper.py log</h1> | 29 <h1>command_wrapper.py log</h1> |
| 28 <table> | 30 <table> |
| 29 <tr> | 31 <tr> |
| 32 <th align="left">row</th> |
| 30 <th align="left">command_id</th> | 33 <th align="left">command_id</th> |
| 31 <th align="left">remote_addr</th> | 34 <th align="left">remote_addr</th> |
| 32 <th align="left">attempt</th> | 35 <th align="left">attempt</th> |
| 33 <th align="left">retries</th> | 36 <th align="left">retries</th> |
| 34 <th align="left">command</th> | 37 <th align="left">command</th> |
| 35 <th align="left">returncode</th> | 38 <th align="left">returncode</th> |
| 36 <th align="left">runtime</th> | 39 <th align="left">runtime</th> |
| 37 <th align="left">timestamp</th> | 40 <th align="left">timestamp</th> |
| 38 <th align="left">stdout</th> | 41 <th align="left">stdout</th> |
| 39 <th align="left">stderr</th> | 42 <th align="left">stderr</th> |
| 40 <th align="left">cwd</th> | 43 <th align="left">cwd</th> |
| 41 <th align="left">uname_sysname</th> | 44 <th align="left">uname_sysname</th> |
| 42 <th align="left">uname_nodename</th> | 45 <th align="left">uname_nodename</th> |
| 43 <th align="left">uname_release</th> | 46 <th align="left">uname_release</th> |
| 44 <th align="left">uname_version</th> | 47 <th align="left">uname_version</th> |
| 45 <th align="left">uname_machine</th> | 48 <th align="left">uname_machine</th> |
| 46 <th align="left">uname_processor</th> | 49 <th align="left">uname_processor</th> |
| 50 <th align="left">response</th> |
| 47 </tr> | 51 </tr> |
| 48 {% for item in items %} | 52 {% for item in items %} |
| 49 <tr> | 53 <tr> |
| 54 <td>{{ forloop.counter }}</td> |
| 50 <td>{{ item.command_id|escape }}</td> | 55 <td>{{ item.command_id|escape }}</td> |
| 51 <td>{{ item.remote_addr|escape }}</td> | 56 <td>{{ item.remote_addr|escape }}</td> |
| 52 <td>{{ item.attempt|escape }}</td> | 57 <td>{{ item.attempt|escape }}</td> |
| 53 <td>{{ item.retries|escape }}</td> | 58 <td>{{ item.retries|escape }}</td> |
| 54 <td>{{ item.command|escape }}</td> | 59 <td>{{ item.command|escape }}</td> |
| 55 <td>{{ item.returncode|escape }}</td> | 60 <td>{{ item.returncode|escape }}</td> |
| 56 <td>{{ item.runtime|escape }}</td> | 61 <td>{{ item.runtime|escape }}</td> |
| 57 <td>{{ item.timestamp|escape }}</td> | 62 <td>{{ item.timestamp|escape }}</td> |
| 58 <td> | 63 <td> |
| 59 <pre> | 64 <pre> |
| 60 {{ item.stdout|escape }} | 65 {{ item.stdout|escape }} |
| 61 </pre> | 66 </pre> |
| 62 </td> | 67 </td> |
| 63 <td> | 68 <td> |
| 64 <pre> | 69 <pre> |
| 65 {{ item.stderr|escape }} | 70 {{ item.stderr|escape }} |
| 66 </pre> | 71 </pre> |
| 67 </td> | 72 </td> |
| 68 <td>{{ item.cwd|escape }}</td> | 73 <td>{{ item.cwd|escape }}</td> |
| 69 <td>{{ item.uname_sysname|escape }}</td> | 74 <td>{{ item.uname_sysname|escape }}</td> |
| 70 <td>{{ item.uname_nodename|escape }}</td> | 75 <td>{{ item.uname_nodename|escape }}</td> |
| 71 <td>{{ item.uname_release|escape }}</td> | 76 <td>{{ item.uname_release|escape }}</td> |
| 72 <td>{{ item.uname_version|escape }}</td> | 77 <td>{{ item.uname_version|escape }}</td> |
| 73 <td>{{ item.uname_machine|escape }}</td> | 78 <td>{{ item.uname_machine|escape }}</td> |
| 74 <td>{{ item.uname_processor|escape }}</td> | 79 <td>{{ item.uname_processor|escape }}</td> |
| 80 <td>{{ item.response|escape }}</td> |
| 75 </tr> | 81 </tr> |
| 76 {% endfor %} | 82 {% endfor %} |
| 77 </table> | 83 </table> |
| 78 </body> | 84 </body> |
| 79 </html> | 85 </html> |
| OLD | NEW |