Updates to status page to add edit incident column when logged in as admin

Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
Nathan Booth
2011-12-29 20:04:53 +00:00
parent 284a4fdf3f
commit 4e8aa99803
2 changed files with 7 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ table{
table th, table td { table th, table td {
text-align: center; text-align: center;
line-height: 10px; line-height: 20px;
vertical-align: middle; vertical-align: middle;
} }

View File

@@ -54,11 +54,11 @@
{$incidentsDuring=$site->openIncidentsDuring($start, $end)} {$incidentsDuring=$site->openIncidentsDuring($start, $end)}
{$incidentCount=count($incidentsDuring)} {$incidentCount=count($incidentsDuring)}
<div class="row"> <div class="row">
<div class="span4 column"><!--New description--> <div class="span3 column"><!--New description-->
<h3 class="status">{if $day == 0}Today {/if}{$start|date_format:"d M Y"}</h3> <h3 class="status">{$start|date_format:"d M Y"}</h3>
<p>{$incidentCount} {StatusBoard_Formatting::pluralise($incidentCount,'incident','incidents')}</p> <p>{$incidentCount} {StatusBoard_Formatting::pluralise($incidentCount,'incident','incidents')}</p>
</div> </div>
<div class="span11 column"> <div class="span12 column">
{if $incidentsDuring} {if $incidentsDuring}
<table class="bordered-table"><!--Services table --> <table class="bordered-table"><!--Services table -->
<thead> <thead>
@@ -67,6 +67,7 @@
<th>Time Opened</th> <th>Time Opened</th>
<th>Status</th> <th>Status</th>
<th>Time Closed</th> <th>Time Closed</th>
{if $display_admin_links}<th>Actions</th>{/if}
</thead> </thead>
<tbody> <tbody>
{foreach from=$incidentsDuring item=incident} {foreach from=$incidentsDuring item=incident}
@@ -88,12 +89,13 @@
Still Open Still Open
{/if} {/if}
</td> </td>
{if $display_admin_links}<td><a href="{$base_uri}admin/incident/service/{$service->id}/site/{$site->id}/id/{$incident->id}/" title="Edit {$incident->reference|escape:html}">Edit Incident: {$incident->reference|escape:html}</a></td>{/if}
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table><!--/name table --> </table><!--/name table -->
{else} {else}
<p>There were no recorded incidents on this day</p> <p style="padding-top:10px;">There were no recorded incidents on this day</p>
{/if} {/if}
</div> </div>
</div> </div>