Skip to content

Commit fc3ee5c

Browse files
committed
templates: viewer: add button to open the LAVA job page
This adds a new button for LAVA jobs executed on Collabora's instance, so we can easily open the job page for debugging/analysis purpose. Signed-off-by: Arnaud Ferraris <[email protected]>
1 parent 694d0cb commit fc3ee5c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

templates/viewer.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@
189189
// add download button
190190
miscbuttonshtml += "<button id=\"downloadbutton\" class=\"download\" href=\"\" onclick=\"\">Download</button>";
191191

192+
var node_data = data.data;
193+
if (node_data != null) {
194+
var runtime = node_data.runtime;
195+
var job = node_data.job_id;
196+
if (node_data.runtime == "lava-collabora" && node_data.job_id != null) {
197+
miscbuttonshtml += "<button id=\"lavajobbutton\" class=\"misc\" href=\"https://lava.collabora.dev/scheduler/job/" + node_data.job_id + "\">LAVA Job</button>";
198+
}
199+
}
200+
192201
// add node size info (raw size)
193202
var nodesize = raw.length;
194203
miscbuttonshtml += "<span>Node size: " + nodesize + " bytes</span>";
@@ -569,4 +578,4 @@
569578
<div id="nodeinfo"></div>
570579
<div id="nodesearchdiv"></div>
571580
</body>
572-
</html>
581+
</html>

0 commit comments

Comments
 (0)