Updated logic for table output
Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
@@ -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>
|
||||||
@@ -16,25 +17,16 @@
|
|||||||
<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}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user