Avail feature updated
[ninja.git] / application / widgets / netw_outages / view.php
blobdc5a2112a6e7222b529c3a8d55364b39bfacad65
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 if (!$user_has_access) { ?>
3 <table class="w-table">
4 <tr>
5 <td class="icon dark"><span class="icon-16 x16-shield-not-critical"></span></td>
6 <td><?php echo $no_access_msg; ?></td>
7 </tr>
8 </table>
9 <?php } else { ?>
10 <table class="w-table">
11 <?php if ($total_blocking_outages > 0) { ?>
12 <tr>
13 <td class="icon dark"><span class="icon-16 x16-shield-critical"></span></td>
14 <td class="status-outages"><?php echo html::anchor('outages/index/', html::specialchars($total_blocking_outages.' '.$label)); ?></td>
15 </tr>
16 <?php } else { ?>
17 <tr>
18 <td class="icon dark"><span class="icon-16 x16-shield-not-critical"></span></td>
19 <td><?php echo html::anchor('outages/index/', html::specialchars(_('N/A'))); ?></td>
20 </tr>
21 <?php } ?>
22 </table>
23 <?php
24 } // end if user_has_access