Changes for page Material Collection
Last modified by Judith Steinfeld on 2025/06/03 11:13
From version 55.23
edited by Benjamin Fischer
on 2024/10/28 13:49
on 2024/10/28 13:49
Change comment:
There is no comment for this version
To version 55.17
edited by Benjamin Fischer
on 2024/10/28 13:35
on 2024/10/28 13:35
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -56,20 +56,17 @@ 56 56 const b = a.ownerDocument.createElement("b"); 57 57 a.replaceWith(b); 58 58 b.appendChild(a); 59 - a.textContent = row.doc_title; 60 60 61 61 const u = new URL(row.link_value); 62 62 let icon; 63 63 if (u.hostname.includes("github")) icon = "github"; 64 - if (u.hostname.includes("github.io")) icon = "book"; 65 65 if (u.hostname.includes("gitlab")) icon = "gitlab"; 66 66 if (u.hostname.includes("google")) icon = "google"; 67 - if (u.hostname.includes("colab")) icon = "code"; 68 68 if (u.hostname.includes("youtube")) icon = "youtube-play"; 69 69 if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o"; 70 70 if (icon) { 71 71 const s = a.ownerDocument.createElement("span"); 72 - s. appendChild(a.ownerDocument.createElement("wbr"));69 + s.textContent = " "; 73 73 s.setAttribute("class", `fa fa-${icon}`); 74 74 s.setAttribute("style", "padding-right: .3em;"); 75 75 a.insertBefore(s, a.firstChild);