homogeneized some widgets

This commit is contained in:
dcore94 2023-04-03 12:51:08 +02:00
parent e90d0a37d8
commit 7fe9e3613e
2 changed files with 5 additions and 5 deletions

View File

@ -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} <span class="badge badge-primary ml-1">${d.version}</span>
${ d.metadata.filter(md=>md.role === 'author').map(a=>`<span class="badge badge-info ml-1">${a.title}</span>`)}
`
},
{
target: "p.description",

View File

@ -94,7 +94,7 @@ class CCPExecutionHistory extends HTMLElement {
</p>
</summary>
<div class="d-flex mb-1" style="gap:3px">
<span class="badge" name="infrastructure" alt="Infrastructure" title="Infrastructure"></span>
<span class="badge badge-light text-info border border-info" name="infrastructure" alt="Infrastructure" title="Infrastructure"></span>
<span class="badge" name="runtime" alt="Runtime" title="Runtime"></span>
</div>
<ul>
@ -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)
}
},
{