mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-19 02:49:19 +02:00
Added breadcrumbs in CP, part 1
and some UI fixes
This commit is contained in:
parent
c6e520f1e0
commit
b59e8dee4d
22 changed files with 250 additions and 128 deletions
|
@ -329,13 +329,11 @@ class HostsController extends Controller
|
|||
if (!$internal_host) {
|
||||
$host = $db->selectRow('SELECT id, name, clid, crdate FROM host WHERE name = ?',
|
||||
[ $args ]);
|
||||
|
||||
|
||||
if ($host) {
|
||||
return view($response,'admin/hosts/updateInternalHost.twig', [
|
||||
'host' => $host,
|
||||
'currentUri' => $uri
|
||||
]);
|
||||
|
||||
$this->container->get('flash')->addMessage('info', $host['name'].' is an external host, not managed by the registry. No action needed');
|
||||
return $response->withHeader('Location', '/hosts')->withStatus(302);
|
||||
|
||||
} else {
|
||||
// Host does not exist, redirect to the hosts view
|
||||
return $response->withHeader('Location', '/hosts')->withStatus(302);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue