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> <thead>
<tr> <tr>
<th>Service</th> <th>Service</th>
<th>Sites</th>
<th class="status">Current</th> <th class="status">Current</th>
{foreach from=$days key="ind" item="day"} {foreach from=$days key="ind" item="day"}
<th class="status">{$day}</th> <th class="status">{$day}</th>
@@ -13,28 +14,19 @@
<tbody> <tbody>
{foreach from=$services item=service} {foreach from=$services item=service}
<tr colspan="8" class="service"> <tr colspan="8" class="service">
<th> <th >
{$service->name} {$service->name}
</th> </th>
</tr>
{foreach from=$service->sites() item=site} {foreach from=$service->sites() item=site}
{assign var=incidents value=$site->openIncidents()} {assign var=incidents value=$site->openIncidents()}
<tr>
<td> <td>
{$site->name} {$site->name}
</td> </td>
<td> <td>
{StatusBoard_Status::name($site->status())} {StatusBoard_Status::name($site->status())}
</td> </td>
<td>good</td>
<td>good</td>
<td>good</td>
<td>good</td>
<td>good</td>
<td>good</td>
</tr>
{foreachelse} {foreachelse}
</tr>
{/foreach} {/foreach}
{/foreach} {/foreach}

View File

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