diff options
| author | zousar <[email protected]> | 2026-02-16 16:39:44 -0700 |
|---|---|---|
| committer | zousar <[email protected]> | 2026-02-16 16:39:44 -0700 |
| commit | ccfcb14ef1b837ed6f752ae4f27e0ef88a5b18da (patch) | |
| tree | edf8639f2a4ae32bc002779e1186f91dbba1ce08 /src/zenserver/frontend/html/pages/entry.js | |
| parent | Change breadcrumbs for oplogs to be more descriptive (diff) | |
| download | zen-ccfcb14ef1b837ed6f752ae4f27e0ef88a5b18da.tar.xz zen-ccfcb14ef1b837ed6f752ae4f27e0ef88a5b18da.zip | |
Added custom page for cook.artifacts
Diffstat (limited to 'src/zenserver/frontend/html/pages/entry.js')
| -rw-r--r-- | src/zenserver/frontend/html/pages/entry.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/zenserver/frontend/html/pages/entry.js b/src/zenserver/frontend/html/pages/entry.js index 26ea78142..dca3a5c25 100644 --- a/src/zenserver/frontend/html/pages/entry.js +++ b/src/zenserver/frontend/html/pages/entry.js @@ -138,11 +138,23 @@ export class Page extends ZenPage const project = this.get_param("project"); const oplog = this.get_param("oplog"); + const opkey = this.get_param("opkey"); const link = row.get_cell(0).link( - "/" + ["prj", project, "oplog", oplog, value+".json"].join("/") + (key === "cook.artifacts") ? + `?page=cookartifacts&project=${project}&oplog=${oplog}&opkey=${opkey}&hash=${value}` + : "/" + ["prj", project, "oplog", oplog, value+".json"].join("/") ); const action_tb = new Toolbar(row.get_cell(-1), true); + + // Add "view-raw" button for cook.artifacts + if (key === "cook.artifacts") + { + action_tb.left().add("view-raw").on_click(() => { + window.location = "/" + ["prj", project, "oplog", oplog, value+".json"].join("/"); + }); + } + action_tb.left().add("copy-hash").on_click(async (v) => { await navigator.clipboard.writeText(v); }, value); |