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.3
edited by admin
on 2024/10/23 12:09
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -55,6 +55,8 @@
55 55   const u = new URL(row.link_value);
56 56   let icon;
57 57   if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o";
58 + if (u.hostname.includes("github")) icon = "github";
59 + if (u.hostname.includes("gitlab")) icon = "gitlab";
58 58   if (icon) {
59 59   const s = a.ownerDocument.createElement("span");
60 60   s.textContent = " ";