From 39721222499fc299302a1f072fc0c6c1a9bb171b Mon Sep 17 00:00:00 2001 From: Nathan Booth Date: Mon, 19 Dec 2011 14:51:15 +0000 Subject: [PATCH] Updated logic for table output Signed-off-by: Nathan Booth --- source/webui/templates/home.tpl | 16 ++++------------ source/webui/templates/index.tpl | 3 +++ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/source/webui/templates/home.tpl b/source/webui/templates/home.tpl index 49dee50..cf6f43e 100644 --- a/source/webui/templates/home.tpl +++ b/source/webui/templates/home.tpl @@ -3,6 +3,7 @@ Service + Sites Current {foreach from=$days key="ind" item="day"} {$day} @@ -13,28 +14,19 @@ {foreach from=$services item=service} - + {$service->name} - {foreach from=$service->sites() item=site} {assign var=incidents value=$site->openIncidents()} - {$site->name} {StatusBoard_Status::name($site->status())} - - good - good - good - good - good - good - + {foreachelse} - + {/foreach} {/foreach} diff --git a/source/webui/templates/index.tpl b/source/webui/templates/index.tpl index df300f8..6726618 100644 --- a/source/webui/templates/index.tpl +++ b/source/webui/templates/index.tpl @@ -23,6 +23,9 @@ body { padding-top: 60px; } + table th, table td { + text-align: center; + }