From 96b16df845b333f4b53802bc9e4eb0340ecf4ac9 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 19 Dec 2011 15:49:34 +0000 Subject: [PATCH] Fixed status board table layout and row banding --- public/styles/normal.css | 9 +++++++ source/webui/templates/home.tpl | 42 ++++++++++++++++++++++++--------- 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/public/styles/normal.css b/public/styles/normal.css index 2f34a22..a8579cf 100644 --- a/public/styles/normal.css +++ b/public/styles/normal.css @@ -112,3 +112,12 @@ div.incident { table th, table td { text-align: center; } + +th.service { + text-align: left; + background-color: #dddddd; +} + +.odd_row { + background-color: #eeeeee; +} \ No newline at end of file diff --git a/source/webui/templates/home.tpl b/source/webui/templates/home.tpl index cf6f43e..8cdf1ce 100644 --- a/source/webui/templates/home.tpl +++ b/source/webui/templates/home.tpl @@ -1,35 +1,55 @@
- +
- {foreach from=$days key="ind" item="day"} - + {/foreach} - {foreach from=$services item=service} - - + + {foreach from=$service->sites() item=site} - {assign var=incidents value=$site->openIncidents()} + {assign var=incidents value=$site->openIncidents()} + - {foreachelse} - - - {/foreach} + + + + + + + + {/foreach} {/foreach}
ServiceSites Current{$day}{$day}
+
{$service->name}
{$site->name} {StatusBoard_Status::name($site->status())}
+ TODO + + TODO + + TODO + + TODO + + TODO + + TODO +
+ +