hide port for websites on small devices

pull/67/head
Pepijn Over 2014-04-16 22:02:04 +02:00
parent a88c2f6cbc
commit 96b5085099
2 changed files with 6 additions and 4 deletions

View File

@ -101,9 +101,11 @@ class ServerController extends AbstractServerController {
if($servers[$x]['type'] == 'website') { if($servers[$x]['type'] == 'website') {
$servers[$x]['type_icon'] = 'icon-globe'; $servers[$x]['type_icon'] = 'icon-globe';
// add link to label // add link to label
$servers[$x]['ip'] = '<a href="'.$servers[$x]['ip'].'" target="_blank">'.$servers[$x]['ip'].'</a>'; $servers[$x]['ip'] = '<a href="'.$servers[$x]['ip'].'" target="_blank">'.$servers[$x]['ip'].'</a>';
$servers[$x]['ip_short'] = $servers[$x]['ip'];
} else { } else {
$servers[$x]['type_icon'] = 'icon-cog'; $servers[$x]['type_icon'] = 'icon-cog';
$servers[$x]['ip_short'] = $servers[$x]['ip'] . ' : ' . $servers[$x]['port'];
} }
if(($servers[$x]['active'] == 'yes')) { if(($servers[$x]['active'] == 'yes')) {
$servers[$x]['active_icon'] = 'icon-eye-open'; $servers[$x]['active_icon'] = 'icon-eye-open';
@ -116,7 +118,7 @@ class ServerController extends AbstractServerController {
$servers[$x]['email_icon'] = ''; $servers[$x]['email_icon'] = '';
$servers[$x]['sms_icon'] = ''; $servers[$x]['sms_icon'] = '';
} }
$servers[$x] = $this->formatServer($servers[$x]); $servers[$x] = $this->formatServer($servers[$x]);
} }
// add servers to template // add servers to template

View File

@ -22,7 +22,7 @@
<span class="label label-status-{status}"><a href="{url_view}" title="{error}">{status}</a></span> <span class="label label-status-{status}"><a href="{url_view}" title="{error}">{status}</a></span>
</td> </td>
<td class="hidden-phone"><a href="{url_view}">{label}</a></td> <td class="hidden-phone"><a href="{url_view}">{label}</a></td>
<td class="nowrap visible-tablet"><i class="{type_icon}" title="{type}"></i> {ip} : {port}</td> <td class="nowrap visible-tablet"><i class="{type_icon}" title="{type}"></i> {ip_short}</td>
<td class="nowrap visible-desktop">{ip}</td> <td class="nowrap visible-desktop">{ip}</td>
<td class="nowrap visible-desktop">{port}</td> <td class="nowrap visible-desktop">{port}</td>
<td class="nowrap visible-desktop">{type}</td> <td class="nowrap visible-desktop">{type}</td>
@ -49,7 +49,7 @@
</div> </div>
<div class="table-body"> <div class="table-body">
<div class="table-row"> <div class="table-row">
<div class="table-cell"><i class="{type_icon}" title="{type}"></i> {ip} : {port}</div> <div class="table-cell"><i class="{type_icon}" title="{type}"></i> {ip_short}</div>
<div class="table-cell tight"> <div class="table-cell tight">
<i class="{active_icon}" title="{active_title}"></i> <i class="{email_icon}" title="{label_email}"></i> <i class="{sms_icon}" title="{label_sms}"></i> <i class="{active_icon}" title="{active_title}"></i> <i class="{email_icon}" title="{label_email}"></i> <i class="{sms_icon}" title="{label_sms}"></i>
</div> </div>