Updated homepage and added incident detail page
Widened the site/service column on homepage to allow for longer site names. Added page for incident, modified link on status page to link to incident history. Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
56
source/webui/templates/incident.tpl
Normal file
56
source/webui/templates/incident.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span16"><!--name content container -->
|
||||
<h1>Incident History: {$incident->reference|escape:html}</h1>
|
||||
<div class="rounded_content">
|
||||
<div class="row">
|
||||
<div class="span13 column">
|
||||
<p>This page details the history of incident: {$incident->reference|escape:html}</p>
|
||||
</div>
|
||||
<div class="span2 column">
|
||||
{if $display_admin_links}<button class='btn small primary' onclick="document.location.href='{$base_uri}admin/incident/service/{$service->id}/site/{$site->id}/id/{$incident->id}/';return false;">Edit Incident</button>{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span4 column">
|
||||
<h3>Incident Details</h3>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="span11 column">
|
||||
<p style="padding-top:10px;"><b>Service:</b> {$service->name|escape:html}</p>
|
||||
<p><b>Site:</b> {$site->name|escape:html}</p>
|
||||
<p><b>Opened:</b> {$incident->start_time|date_format:'h:i:s y-m-d'}</p>
|
||||
<p><b>Estimated End:</b> {$incident->estimated_end_time|date_format:'h:i:s y-m-d'}</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span4 column">
|
||||
<h3>Status Changes</h3>
|
||||
<p>The table display an audit log of changes to this incident</p>
|
||||
</div><!--/New Service description-->
|
||||
<div class="span11 column">
|
||||
<table>
|
||||
<thead>
|
||||
<th>Date/Time</th>
|
||||
<th>Status</th>
|
||||
<th>Description</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$statuses item=status}
|
||||
<tr>
|
||||
<td>
|
||||
{StatusBoard_DateTime::fuzzyTime($status->ctime)}<br />
|
||||
<em>{$status->ctime|date_format:'y-m-d h:i:s'}</em>
|
||||
</td>
|
||||
<td>{StatusBoard_Status::name($status->status)}</td>
|
||||
<td>{$status->description|escape:html}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user