Mark WilkensXL build versions
Some checks failed
Container Image / build-and-push (push) Has been cancelled

This commit is contained in:
2026-07-15 22:06:24 +02:00
parent caffdaa38c
commit aa1293323e
8 changed files with 107 additions and 7 deletions

View File

@@ -994,7 +994,10 @@
el.textContent = 'Type /setup, then choose Local models or API.';
}
fetch('/api/version').then(function(r){return r.json()}).then(function(d){
if (d.version) window._appVersion = d.version;
var fullVersion = d.full_version || d.build_version || d.version;
if (fullVersion) window._appVersion = fullVersion;
if (d.upstream_version) window._upstreamVersion = d.upstream_version;
if (d.build_flavor) window._buildFlavor = d.build_flavor;
}).catch(function(){});
})();
</script>

View File

@@ -305,7 +305,11 @@
const vr = await fetch('/api/version');
if (vr.ok) {
const vd = await vr.json();
document.getElementById('version-label').textContent = 'v' + vd.version;
const version = vd.full_version || vd.build_version || vd.version;
const upstream = vd.upstream_version && vd.upstream_version !== version
? ' (upstream ' + vd.upstream_version + ')'
: '';
document.getElementById('version-label').textContent = version ? 'v' + version + upstream : '';
}
} catch(e) {}