Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/views/ip_addresses/show.php | ||
---|---|---|
<?php
|
||
$links = array();
|
||
|
||
if (!$ip_address->member_id && $this->acl_check_edit('Devices_Controller', 'ip_address'))
|
||
$links[] = html::anchor('ip_addresses/edit/'.$ip_address->id, __('Edit'));
|
||
if (!$ip_address->member_id && $this->acl_check_delete('Devices_Controller', 'ip_address'))
|
||
if (!$ip_address->member_id && $this->acl_check_edit('Ip_addresses_Controller', 'ip_address'))
|
||
$links[] = html::anchor('ip_addresses/edit/'.$ip_address->id, __('Edit'), array('class' => 'popup_link'));
|
||
if (!$ip_address->member_id && $this->acl_check_delete('Ip_addresses_Controller', 'ip_address'))
|
||
$links[] = html::anchor('ip_addresses/delete/'.$ip_address->id, __('Delete'));
|
||
if ($this->acl_check_new('Messages_Controller', 'ip_address'))
|
||
if (module::e('redirection') && $this->acl_check_new('Redirect_Controller', 'redirect'))
|
||
$links[] = html::anchor('redirect/activate_to_ip_address/'.$ip_address->id, __('Activate redirection'));
|
||
if ($this->acl_check_view('Messages_Controller', 'ip_address'))
|
||
if (module::e('redirection') && $this->acl_check_view('Redirect_Controller', 'redirect'))
|
||
$links[] = html::anchor(url::base().'redirection/?ip_address='.$ip_address->ip_address, __('Redirection preview'));
|
||
|
||
echo implode(' | ', $links);
|
||
... | ... | |
<table class="extended" cellspacing="0" style="float:left; margin-left:10px;">
|
||
<tr>
|
||
<th><?php echo __('Subnet name') ?></th>
|
||
<?php if ($this->acl_check_view('Subnets_Controller', 'subnet')): ?>
|
||
<td><?php echo html::anchor('subnets/show/'.$ip_address->subnet_id, $ip_address->subnet->name) ?></td>
|
||
<?php else: ?>
|
||
<td><?php echo $ip_address->subnet->name ?></td>
|
||
<?php endif ?>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo __('Subnet network address') ?></th>
|
||
... | ... | |
<th><?php echo __('Service').' '.help::hint('service') ?></th>
|
||
<td><?php echo $ip_address->service ? __('Yes') : __('No') ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo __('Whitelist').' '.help::hint('whitelist') ?></th>
|
||
<td><?php echo $ip_address->get_whitelist_type() ?></td>
|
||
</tr>
|
||
|
||
|
||
</table>
|
Také k dispozici: Unified diff
Release 1.1.0