|
@@ -259,7 +259,7 @@ function renderNotifs() {
|
|
|
const when = n.date ? `${n.date}${n.time ? "·" + n.time : ""}` : "";
|
|
const when = n.date ? `${n.date}${n.time ? "·" + n.time : ""}` : "";
|
|
|
const score = n.score != null ? `${n.score} /100` : n.points || "";
|
|
const score = n.score != null ? `${n.score} /100` : n.points || "";
|
|
|
const links = n.files.map(f =>
|
|
const links = n.files.map(f =>
|
|
|
- `<a class="open" target="_blank" href="/r/${encodeURIComponent(n.name)}/${encodeURIComponent(f)}" title="open ${esc(f)}">${esc(f.split(".").pop())}</a>`).join(" ");
|
|
|
|
|
|
|
+ `<a class="open" target="_blank" href="${auth("/r/" + encodeURIComponent(n.name) + "/" + encodeURIComponent(f))}" title="open ${esc(f)}">${esc(f.split(".").pop())}</a>`).join(" ");
|
|
|
return `<div class="noti" data-name="${esc(n.name)}" title="show in table">
|
|
return `<div class="noti" data-name="${esc(n.name)}" title="show in table">
|
|
|
<span class="nic">${NICON[n.t] || "•"}</span>
|
|
<span class="nic">${NICON[n.t] || "•"}</span>
|
|
|
<div><b>${esc(n.name)}</b> <span class="dim">${esc(n.label)}</span><br>
|
|
<div><b>${esc(n.name)}</b> <span class="dim">${esc(n.label)}</span><br>
|
|
@@ -487,7 +487,7 @@ function render() {
|
|
|
if (S.openRow === r.name) {
|
|
if (S.openRow === r.name) {
|
|
|
// one toml section per recipe (the recipe.toml is not versioned);
|
|
// one toml section per recipe (the recipe.toml is not versioned);
|
|
|
// per-run report files stay on each line
|
|
// per-run report files stay on each line
|
|
|
- const toml = `<a class="open" href="/r/${encodeURIComponent(r.name)}/recipe.toml" target="_blank" title="recipe.toml (highlighted)">⚙ toml</a>`;
|
|
|
|
|
|
|
+ const toml = `<a class="open" href="${auth("/r/" + encodeURIComponent(r.name) + "/recipe.toml")}" target="_blank" title="recipe.toml (highlighted)">⚙ toml</a>`;
|
|
|
const lines = r.reports.map(e => {
|
|
const lines = r.reports.map(e => {
|
|
|
const fl = e.files && e.files.length ? e.files : [e.file];
|
|
const fl = e.files && e.files.length ? e.files : [e.file];
|
|
|
const ts = (e.perf && e.perf.length)
|
|
const ts = (e.perf && e.perf.length)
|
|
@@ -500,7 +500,7 @@ function render() {
|
|
|
? `<span class="prov" title="recipe ${esc(pr.recipe_sha)}${pr.recipe_drift ? " (CHANGED SINCE THIS RUN — see the run's recipe.toml copy)" : ""} · image ${esc(pr.image || "—")} @ ${esc(pr.image_sum || "—")} (docker id ${esc(pr.image_id || "—")}) · tool ${esc(pr.tool || "—")} · launcher ${esc(pr.launcher || "—")}">⚙ ${esc((pr.image_sum || "–").slice(0, 12))}·${esc(pr.recipe_sha || "–")}${pr.recipe_drift ? "⚠" : ""}</span> `
|
|
? `<span class="prov" title="recipe ${esc(pr.recipe_sha)}${pr.recipe_drift ? " (CHANGED SINCE THIS RUN — see the run's recipe.toml copy)" : ""} · image ${esc(pr.image || "—")} @ ${esc(pr.image_sum || "—")} (docker id ${esc(pr.image_id || "—")}) · tool ${esc(pr.tool || "—")} · launcher ${esc(pr.launcher || "—")}">⚙ ${esc((pr.image_sum || "–").slice(0, 12))}·${esc(pr.recipe_sha || "–")}${pr.recipe_drift ? "⚠" : ""}</span> `
|
|
|
: "";
|
|
: "";
|
|
|
return `<span>${fl.map(f =>
|
|
return `<span>${fl.map(f =>
|
|
|
- `<a class="open" href="/r/${encodeURIComponent(r.name)}/${encodeURIComponent(f)}" target="_blank" title="open ${esc(f)}">${esc(f.split('.').pop())}</a>`).join(" ")}</span> ` +
|
|
|
|
|
|
|
+ `<a class="open" href="${auth("/r/" + encodeURIComponent(r.name) + "/" + encodeURIComponent(f))}" target="_blank" title="open ${esc(f)}">${esc(f.split('.').pop())}</a>`).join(" ")}</span> ` +
|
|
|
`${esc(e.date)}${e.time ? "·" + esc(e.time) : ""} ${esc(e.label)} — ${e.pct != null ? esc(e.pct) + "/100" : '<span class="dim">no score</span>'}${e.points ? " (" + esc(e.points) + ")" : ""}${ts}${chip}`;
|
|
`${esc(e.date)}${e.time ? "·" + esc(e.time) : ""} ${esc(e.label)} — ${e.pct != null ? esc(e.pct) + "/100" : '<span class="dim">no score</span>'}${e.points ? " (" + esc(e.points) + ")" : ""}${ts}${chip}`;
|
|
|
}).join("<br>");
|
|
}).join("<br>");
|
|
|
out.push(`<tr class="hist"><td colspan="${vis.length}">${toml}${r.reports.length ? " " + lines : ' <span class="dim">no reports</span>'}</td></tr>`);
|
|
out.push(`<tr class="hist"><td colspan="${vis.length}">${toml}${r.reports.length ? " " + lines : ' <span class="dim">no reports</span>'}</td></tr>`);
|