Changes for page Material Collection
Last modified by Judith Steinfeld on 2025/06/03 11:13
From version 55.22
edited by Benjamin Fischer
on 2024/10/28 13:46
on 2024/10/28 13:46
Change comment:
There is no comment for this version
To version 55.25
edited by Benjamin Fischer
on 2024/10/28 14:24
on 2024/10/28 14:24
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,6 +1,6 @@ 1 1 const tabName = "materials"; 2 2 const tagCols = [ 3 - ["Type", "lecture", "exercise", "hands-on", "solution", "tutorial", "talk", "course", "video"], 3 + ["Type", "lecture", "exercise", "hands-on", "solution", "tutorial", "talk", "course", "video", "paper"], 4 4 ["Tags", true], 5 5 ] 6 6 ... ... @@ -64,8 +64,10 @@ 64 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"; 67 67 if (u.hostname.includes("youtube")) icon = "youtube-play"; 68 68 if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o"; 70 + if (u.pathname.endsWith(".pptx")) icon = "file-powerpoint-o"; 69 69 if (icon) { 70 70 const s = a.ownerDocument.createElement("span"); 71 71 s.appendChild(a.ownerDocument.createElement("wbr"));