summaryrefslogtreecommitdiffstats
path: root/controller/result_templates/html.tmpl
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-22 08:54:05 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-22 08:54:05 +0200
commit2422a081a5be0d5ac5afb122361bc283da67341f (patch)
treecb255582060af6547dd9318c56ba0e8c761846a1 /controller/result_templates/html.tmpl
parent922089746e1029de9be986672fcdeb6bc82e18d7 (diff)
downloadpostgresql-setup-tests-2422a081a5be0d5ac5afb122361bc283da67341f.tar.gz
postgresql-setup-tests-2422a081a5be0d5ac5afb122361bc283da67341f.tar.xz
postgresql-setup-tests-2422a081a5be0d5ac5afb122361bc283da67341f.zip
big reorg: prepare for generalization
Try to split into three separate components -> controller, tester, and 'tasks' (postgresql-tasks in our case). The controller component is the main part which is able to run the task remotely. Tester is more-like library for 'tasks' component (should be reusable on the raw git level). * controller: Almost separated component. * postgresql-tasks: Likewise. * tester: Likewise.
Diffstat (limited to 'controller/result_templates/html.tmpl')
-rw-r--r--controller/result_templates/html.tmpl42
1 files changed, 42 insertions, 0 deletions
diff --git a/controller/result_templates/html.tmpl b/controller/result_templates/html.tmpl
new file mode 100644
index 0000000..8a09ad7
--- /dev/null
+++ b/controller/result_templates/html.tmpl
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8" />
+<meta name="keywords" content="" />
+<title>Results</title>
+<link href="https://praiskup.fedorapeople.org/staticdata/patternfly-1.1/css/patternfly.css" rel="stylesheet" media="screen, print">
+</head>
+<body>
+<div class="table-responsive">
+<table class="table table-condensed table-hover">
+<thead>
+ <tr>
+ <th>Run time</th>
+: for $task_ids.keys() -> $task_id {
+ <th><: $task_id :></th>
+: }
+ </tr>
+</thead><tbody>
+: for $results -> $result {
+ : if ($result.exit_status) {
+ <tr class="danger">
+ : } else {
+ <tr>
+ : }
+ <td><: $result.dirname :></td>
+ : for $task_ids.keys() -> $task_id {
+ : if (not defined($result.tasks[$task_id].exit_status)) {
+ <td>NOT AVAILABLE</td>
+ : } elsif ($result.tasks[$task_id].exit_status == 0) {
+ <td>OK</td>
+ : } else {
+ <td class="danger">FAIL</td>
+ : }
+ : }
+ <tr>
+:}
+</tbody>
+</table>
+</div>
+</body>
+</html>