From 8fa85db81911e90b3a0c138ac0e6c27456e9d034 Mon Sep 17 00:00:00 2001
From: dcore94
Date: Wed, 29 Mar 2023 16:59:19 +0200
Subject: [PATCH] added runtime info to executions
---
ccp/js/executionhistorycontroller.js | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js
index a9bae8f..5858374 100644
--- a/ccp/js/executionhistorycontroller.js
+++ b/ccp/js/executionhistorycontroller.js
@@ -93,8 +93,9 @@ class CCPExecutionHistory extends HTMLElement {
-
-
+
+
+
@@ -455,6 +456,15 @@ class CCPExecutionHistory extends HTMLElement {
e.classList.add(t2)
}
},
+ {
+ target : "span[name=runtime]",
+ apply : (e,d)=>{
+ e.textContent = d.runtime + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '')
+ const t = d.infrastructuretype.match(/docker/i) ? "docker" : null
+ const t2 = !t && d.infrastructuretype.match(/lxd/i) ? "lxd" : t
+ e.classList.add(t2)
+ }
+ },
{
target : "ul",
recurse : [