Skip to content

Commit

Permalink
Update docs-nav.html
Browse files Browse the repository at this point in the history
  • Loading branch information
DjP-iX committed May 16, 2024
1 parent 197b6fb commit 7ade788
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions layouts/partials/docs-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@

if (path.includes('/core/')) {
productButton.innerHTML = 'TrueNAS CORE <i class="fa fa-angle-down"></i>';
if (path.includes('/13.0/')) {
versionButton.textContent = '13.0';
} else {
versionButton.textContent = 'Nightly';
}
if (path.includes('/13.3/')) {
versionButton.textContent = '13.3';
} else if (path.includes('/13.0/')) {
versionButton.textContent = '13.0';
} else {
versionButton.textContent = 'Nightly';
}
versionUpdated = true;
} else if (path.includes('/scale/')) {
productButton.innerHTML = 'TrueNAS SCALE <i class="fa fa-angle-down"></i>';
Expand Down Expand Up @@ -126,8 +128,9 @@
if (product === 'TrueNAS CORE') {
versionDropdown.innerHTML = `
<div class="truenas-dropdown-item" onclick="selectVersion('core-nightly')" id="core-nightly">Nightly</div>
<div class="truenas-dropdown-item" onclick="selectVersion('13.0')" id="13">13.0</div>
<div class="truenas-dropdown-item" onclick="selectVersion('Archive')" id="Archive">Archive</div>
<div class="truenas-dropdown-item" onclick="selectVersion('13.3')" id="13.3">13.3</div>
<div class="truenas-dropdown-item" onclick="selectVersion('13.0')" id="13">13.0</div>
<div class="truenas-dropdown-item" onclick="selectVersion('Archive')" id="Archive">Archive</div>
`;
} else if (product === 'TrueNAS SCALE') {
versionDropdown.innerHTML = `
Expand Down Expand Up @@ -162,6 +165,8 @@

if (version === '13.0') {
relative_url = 'core/13.0/';
} else if (version === '13.3') {
relative_url = 'core/13.3/';
} else if (version === 'core-nightly') {
relative_url = 'core/';
} else if (version === 'Archive') {
Expand Down

0 comments on commit 7ade788

Please sign in to comment.