Updated logic for table output

Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
Nathan Booth
2011-12-19 14:51:15 +00:00
parent ac8199f4dc
commit 3972122249
2 changed files with 7 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
<thead>
<tr>
<th>Service</th>
<th>Sites</th>
<th class="status">Current</th>
{foreach from=$days key="ind" item="day"}
<th class="status">{$day}</th>
@@ -16,25 +17,16 @@
<th >
{$service->name}
</th>
</tr>
{foreach from=$service->sites() item=site}
{assign var=incidents value=$site->openIncidents()}
<tr>
<td>
{$site->name}
</td>
<td>
{StatusBoard_Status::name($site->status())}
</td>
<td>good</td>
<td>good</td>
<td>good</td>
<td>good</td>
<td>good</td>
<td>good</td>
</tr>
{foreachelse}
</tr>
{/foreach}
{/foreach}

View File

@@ -23,6 +23,9 @@
body {
padding-top: 60px;
}
table th, table td {
text-align: center;
}
</style>
<script src="{$base_uri}scripts/3rdparty/less-1.1.5.min.js"></script>
</head>