Updated logic for table output
Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
@@ -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>
|
||||
@@ -13,28 +14,19 @@
|
||||
<tbody>
|
||||
{foreach from=$services item=service}
|
||||
<tr colspan="8" class="service">
|
||||
<th>
|
||||
<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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user