Changes for page Material Collection

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

From version 55.19
edited by Benjamin Fischer
on 2024/10/28 13:40
Change comment: There is no comment for this version
To version 55.23
edited by Benjamin Fischer
on 2024/10/28 13:49
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -56,12 +56,15 @@
56 56   const b = a.ownerDocument.createElement("b");
57 57   a.replaceWith(b);
58 58   b.appendChild(a);
59 + a.textContent = row.doc_title;
59 59  
60 60   const u = new URL(row.link_value);
61 61   let icon;
62 62   if (u.hostname.includes("github")) icon = "github";
64 + if (u.hostname.includes("github.io")) icon = "book";
63 63   if (u.hostname.includes("gitlab")) icon = "gitlab";
64 64   if (u.hostname.includes("google")) icon = "google";
67 + if (u.hostname.includes("colab")) icon = "code";
65 65   if (u.hostname.includes("youtube")) icon = "youtube-play";
66 66   if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o";
67 67   if (icon) {