From 7fe9e3613e3c65e2d2285fba0aecb27c0e154b38 Mon Sep 17 00:00:00 2001
From: dcore94
Date: Mon, 3 Apr 2023 12:51:08 +0200
Subject: [PATCH] homogeneized some widgets
---
ccp/js/executionformcontroller.js | 5 ++++-
ccp/js/executionhistorycontroller.js | 5 +----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js
index 39b6cff..6883a0c 100644
--- a/ccp/js/executionformcontroller.js
+++ b/ccp/js/executionformcontroller.js
@@ -287,7 +287,10 @@ class CCPExecutionForm extends HTMLElement{
recurse : [
{
target: ".ccp-method-title",
- apply : (e,d)=>e.textContent = d.title + " (v. " + d.version + ")"
+ apply : (e,d)=>e.innerHTML = `
+ ${d.title} ${d.version}
+ ${ d.metadata.filter(md=>md.role === 'author').map(a=>`${a.title}`)}
+ `
},
{
target: "p.description",
diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js
index d60fd12..fc33356 100644
--- a/ccp/js/executionhistorycontroller.js
+++ b/ccp/js/executionhistorycontroller.js
@@ -94,7 +94,7 @@ class CCPExecutionHistory extends HTMLElement {
-
+
@@ -452,9 +452,6 @@ class CCPExecutionHistory extends HTMLElement {
target : "span[name=infrastructure]",
apply : (e,d)=>{
e.textContent = d.infrastructure
- const t = d.infrastructuretype.match(/docker/i) ? "docker" : null
- const t2 = !t && d.infrastructuretype.match(/lxd/i) ? "lxd" : t
- e.classList.add(t2)
}
},
{