Changes for page Service Navigator

Last modified by Veronika Kocher on Friday, 09 Oct 2026 12:12

From version 24.1
edited by Veronika Kocher
on Friday, 09 Oct 2026 11:55
Change comment: There is no comment for this version
To version 25.1
edited by Veronika Kocher
on Friday, 09 Oct 2026 11:58
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
code
... ... @@ -10,6 +10,9 @@
10 10   path = window.location.pathname;
11 11   }
12 12  
13 + /*
14 + * Nur normale VIEW-Seiten innerhalb des Service Navigators.
15 + */
13 13   return /^\/bin\/view\/Service Navigator(?:\/|$)/.test(path);
14 14   }
15 15  
... ... @@ -33,6 +33,7 @@
33 33   return;
34 34   }
35 35  
39 +
36 36   if (
37 37   info.getAttribute(
38 38   "data-sn-last-modified-moved"
... ... @@ -47,9 +47,12 @@
47 47   "sn-last-modified-footer"
48 48   );
49 49  
54 +
50 50   if (!footer) {
51 51   footer =
52 - document.createElement("div");
57 + document.createElement(
58 + "div"
59 + );
53 53  
54 54   footer.id =
55 55   "sn-last-modified-footer";
... ... @@ -77,18 +77,21 @@
77 77  
78 78  
79 79   /*
80 - * Original-XWiki-Zeile verschieben.
81 - * Nicht kopieren.
87 + * Original-XWiki-Element verschieben.
88 + * Dadurch bleiben Benutzername, Profil-Link,
89 + * Datum und Sprachfassung erhalten.
82 82   */
83 83   footer.appendChild(
84 84   info
85 85   );
86 86  
95 +
87 87   info.setAttribute(
88 88   "data-sn-last-modified-moved",
89 89   "1"
90 90   );
91 91  
101 +
92 92   info.style.setProperty(
93 93   "margin",
94 94   "0",
... ... @@ -119,10 +119,17 @@
119 119   "important"
120 120   );
121 121  
132 + info.style.setProperty(
133 + "text-align",
134 + "left",
135 + "important"
136 + );
122 122  
138 +
123 123   Array.from(
124 124   info.querySelectorAll("a")
125 125   ).forEach(function (link) {
142 +
126 126   link.style.setProperty(
127 127   "color",
128 128   "inherit",
... ... @@ -134,6 +134,7 @@
134 134   "underline",
135 135   "important"
136 136   );
154 +
137 137   });
138 138   }
139 139  
... ... @@ -141,15 +141,23 @@
141 141   if (
142 142   document.readyState === "loading"
143 143   ) {
162 +
144 144   document.addEventListener(
145 145   "DOMContentLoaded",
146 146   moveLastModified,
147 147   { once: true }
148 148   );
168 +
149 149   } else {
170 +
150 150   moveLastModified();
172 +
151 151   }
152 152  
175 +
176 + /*
177 + * Für verzögertes XWiki-Rendering.
178 + */
153 153   window.setTimeout(
154 154   moveLastModified,
155 155   250
use
... ... @@ -1,1 +1,1 @@
1 -currentPage
1 +always