changed labels from contexts to infras

This commit is contained in:
dcore94 2023-03-24 17:11:52 +01:00
parent 5828258d11
commit e08c990cc3
1 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ class CCPMethodList2 extends HTMLElement{
<span name="keyword" class="badge badge-pill badge-light border border-dark mr-1" style="opacity:.6"></span>
</div>
<div>
<span name="context" class="badge badge-light text-info border border-info mr-1"></span>
<span name="infrastructures" class="badge badge-light text-info border border-info mr-1"></span>
</div>
</li>
</ul>
@ -371,9 +371,9 @@ class CCPMethodList2 extends HTMLElement{
apply : (e,d)=>{ e.alt = e.title = e.textContent = d }
},
{
target : "span[name=context]",
"in" : (e,d)=>d.metadata.filter(md=>md.role === "context"),
apply : (e,d)=>{ e.alt = e.title = e.textContent = d.title.replaceAll("%2F", "/") }
target : "span[name=infrastructures]",
"in" : (e,d)=>d.links.filter(md=>md.rel === "compatibleWith"),
apply : (e,d)=>{ e.alt = e.title = e.textContent = d.title }
},
{
target : "p[name=description]",