0.7.1: dashboard tab stays clickable on the VM detail page
This commit is contained in:
1 parent
cbf899b94b
commit
52d1e65a01
4 files changed
+6
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"appname": "VM Manager",
|
||||
"version": "0.7.0",
|
||||
"version": "0.7.1",
|
||||
"rootfolder": "/mnt/Daten/extensions/vmmngr",
|
||||
"vm_source": "auto",
|
||||
"bridges": ["ix0bridge"],
|
||||
|
||||
+3
-3
@@ -48,7 +48,7 @@ if (!function_exists('vmm_nav')) {
|
||||
* Clickable breadcrumb + section tabs (the XigmaNAS title itself is plain
|
||||
* text, so navigation lives here).
|
||||
*/
|
||||
function vmm_nav(string $current): void
|
||||
function vmm_nav(string $current, string $crumb = ''): void
|
||||
{
|
||||
$items = [
|
||||
'dashboard' => ['vmmngr.php', gettext('Dashboard')],
|
||||
@@ -58,12 +58,12 @@ if (!function_exists('vmm_nav')) {
|
||||
'jobs' => ['vmmngr_jobs.php', gettext('Jobs')],
|
||||
'config' => ['vmmngr_config.php', gettext('Configuration')],
|
||||
];
|
||||
$label = $items[$current][1] ?? gettext('VM Manager');
|
||||
$label = $crumb !== '' ? $crumb : ($items[$current][1] ?? gettext('VM Manager'));
|
||||
?>
|
||||
<div class="vmm-crumbs"><a href="vmmngr.php"><?=gettext('VM Manager');?></a><span class="vmm-sep">›</span><strong><?=vmm_h($label);?></strong></div>
|
||||
<div class="vmm-tabs">
|
||||
<?php foreach ($items as $key => [$href, $text]): ?>
|
||||
<?php if ($key === $current): ?>
|
||||
<?php if ($key === $current && $current !== ''): ?>
|
||||
<span class="vmm-tab vmm-tab-cur"><?=vmm_h($text);?></span>
|
||||
<?php else: ?>
|
||||
<a class="vmm-tab" href="<?=vmm_h($href);?>"><?=vmm_h($text);?></a>
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ $jobs = vmm_job_list(10, $name);
|
||||
|
||||
include 'fbegin.inc';
|
||||
vmm_css();
|
||||
vmm_nav('dashboard');
|
||||
vmm_nav('', $name);
|
||||
?>
|
||||
|
||||
<form action="vmmngr_vm.php?name=<?=urlencode($name);?>" method="post" name="iform" id="iform"><table id="area_data"><tbody><tr><td id="area_data_frame">
|
||||
|
||||
Reference in new issue
Block a user