mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 02:25:59 +02:00
Small fix on host info page
This commit is contained in:
parent
341a282461
commit
e1d5296a7f
2 changed files with 5 additions and 1 deletions
|
@ -289,6 +289,8 @@ class HostsController extends Controller
|
||||||
|
|
||||||
$hostStatus = $db->selectRow('SELECT status FROM host_status WHERE host_id = ?',
|
$hostStatus = $db->selectRow('SELECT status FROM host_status WHERE host_id = ?',
|
||||||
[ $host['id'] ]);
|
[ $host['id'] ]);
|
||||||
|
$hostLinked = $db->selectRow('SELECT domain_id FROM domain_host_map WHERE host_id = ?',
|
||||||
|
[ $host['id'] ]);
|
||||||
$hostIPv4 = $db->select("SELECT addr FROM host_addr WHERE host_id = ? AND ip = 'v4'",
|
$hostIPv4 = $db->select("SELECT addr FROM host_addr WHERE host_id = ? AND ip = 'v4'",
|
||||||
[ $host['id'] ]);
|
[ $host['id'] ]);
|
||||||
$hostIPv6 = $db->select("SELECT addr FROM host_addr WHERE host_id = ? AND ip = 'v6'",
|
$hostIPv6 = $db->select("SELECT addr FROM host_addr WHERE host_id = ? AND ip = 'v6'",
|
||||||
|
@ -297,6 +299,7 @@ class HostsController extends Controller
|
||||||
return view($response,'admin/hosts/viewHost.twig', [
|
return view($response,'admin/hosts/viewHost.twig', [
|
||||||
'host' => $host,
|
'host' => $host,
|
||||||
'hostStatus' => $hostStatus,
|
'hostStatus' => $hostStatus,
|
||||||
|
'hostLinked' => $hostLinked,
|
||||||
'hostIPv4' => $hostIPv4,
|
'hostIPv4' => $hostIPv4,
|
||||||
'hostIPv6' => $hostIPv6,
|
'hostIPv6' => $hostIPv6,
|
||||||
'registrars' => $registrars,
|
'registrars' => $registrars,
|
||||||
|
|
|
@ -26,7 +26,8 @@
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3 class="card-title">{{ host.name }} <span class="status status-green">{{ hostStatus.status }}</span></h3>
|
<h3 class="card-title">{{ host.name }} <span class="status status-green">{{ hostStatus.status }}</span>{% if hostLinked is not null %} <span class="status status-info">linked</span>{% endif %}</h3>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="datagrid">
|
<div class="datagrid">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue