Small improvements to site breadcrumbs

This commit is contained in:
Herbert Wolverson 2023-08-07 17:45:28 +00:00
parent 8dab5dfa57
commit 07dd42d981
6 changed files with 10 additions and 8 deletions

1
.gitignore vendored
View File

@ -63,6 +63,7 @@ src/rust/long_term_stats/site_build/node_modules
src/rust/long_term_stats/site_build/output
src/rust/long_term_stats/site_build/package-lock.json
src/rust/long_term_stats/wasm_pipe/staging
src/rust/long_term_stats/lts_node/deploy.sh
# Ignore Rust build artifacts
src/rust/target

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@ export class RootBreadcrumbs implements Component {
wireup(): void {
let div = document.getElementById("siteName") as HTMLDivElement;
div.innerHTML = "Root | <select id='siteChildren'></select>";
div.innerHTML = "<a onclick='window.router.goto(\"#dashboard\")'>Root</a> | <select id='siteChildren'></select>";
request_root_parents();
}

View File

@ -24,8 +24,9 @@ export class SiteBreadcrumbs implements Component {
let crumbs = event.SiteParents.data.reverse();
for (let i = 0; i < crumbs.length-1; i++) {
let url = makeUrl(crumbs[i][0], crumbs[i][1]);
html += "<a href='#" + url + "' onclick='window.router.goto(\"" + url + "\")'>" + crumbs[i][1] + "</a> | ";
html += "<a onclick='window.router.goto(\"" + url + "\")'>" + crumbs[i][1] + "</a> | ";
}
html += "<a onclick='window.router.goto(\"#dashboard\")'>Root</a> |";
html += crumbs[crumbs.length-1][1] + " | ";
html += "<select id='siteChildren'></select>";
div.innerHTML = html;

View File

@ -1,7 +1,7 @@
<div class="container">
<div class="row">
<div class="col-12" id="nodeStatus">
<h1>Dashboard</h1>
<h1><i class="fa-solid fa-gauge"></i> Dashboard</h1>
</div>
</div>
<div class="row">