Changes for page Material Collection

Last modified by Judith Steinfeld on 2025/06/03 11:13

From version 55.2
edited by admin
on 2024/10/23 12:05
Change comment: There is no comment for this version
To version 55.5
edited by admin
on 2024/10/23 14:50
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,5 +1,5 @@
1 1  const tagCols = [
2 - ["Tag1", "CERN", "CHEP", "GPU", "VISPA"],
2 + // ["Tag1", "CERN", "CHEP", "GPU", "VISPA"],
3 3   ["Tags", true],
4 4  ]
5 5  
... ... @@ -54,6 +54,9 @@
54 54   const a = li[li.length - 1].children[0];
55 55   const u = new URL(row.link_value);
56 56   let icon;
57 + if (u.hostname.includes("github")) icon = "github";
58 + if (u.hostname.includes("gitlab")) icon = "gitlab";
59 + if (u.hostname.includes("google")) icon = "google";
57 57   if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o";
58 58   if (icon) {
59 59   const s = a.ownerDocument.createElement("span");