Changes for page Service Navigator

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

From version 22.16
edited by Veronika Kocher
on Thursday, 03 Sep 2026 13:04
Change comment: There is no comment for this version
To version 25.2
edited by Veronika Kocher
on Friday, 09 Oct 2026 12:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -42,6 +42,27 @@
42 42  
43 43   <!-- 1. PEOPLE, EQUALITY, HEALTH & WORK -->
44 44   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #f0aa00;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
45 +<!-- SN_DRAFT_BANNER_START -->
46 +<div
47 + data-sn-draft-banner="1"
48 + style="
49 + width:100%;
50 + box-sizing:border-box;
51 + padding:9px 18px 8px;
52 + margin:0;
53 + background:#e94b13;
54 + color:#ffffff;
55 + border-bottom:1px solid #cf3f0d;
56 + font-size:13px;
57 + font-weight:800;
58 + line-height:1.2;
59 + letter-spacing:.10em;
60 + text-transform:uppercase;
61 + text-align:left;
62 + "
63 +>Draft!</div>
64 +<!-- SN_DRAFT_BANNER_END -->
65 +
45 45   <div style="padding:18px 18px 14px 18px;flex:1;">
46 46   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">PEOPLE &amp; WORK</div>
47 47   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">People, Equality, Health &amp; Work</h3>
... ... @@ -65,6 +65,27 @@
65 65  
66 66   <!-- 2. IT & DIGITAL SERVICES -->
67 67   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #38b76a;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
89 +<!-- SN_DRAFT_BANNER_START -->
90 +<div
91 + data-sn-draft-banner="1"
92 + style="
93 + width:100%;
94 + box-sizing:border-box;
95 + padding:9px 18px 8px;
96 + margin:0;
97 + background:#e94b13;
98 + color:#ffffff;
99 + border-bottom:1px solid #cf3f0d;
100 + font-size:13px;
101 + font-weight:800;
102 + line-height:1.2;
103 + letter-spacing:.10em;
104 + text-transform:uppercase;
105 + text-align:left;
106 + "
107 +>Draft!</div>
108 +<!-- SN_DRAFT_BANNER_END -->
109 +
68 68   <div style="padding:18px 18px 14px 18px;flex:1;">
69 69   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">IT &amp; DIGITAL</div>
70 70   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">IT &amp; Digital Services</h3>
... ... @@ -88,6 +88,27 @@
88 88  
89 89   <!-- 3. ROOMS, BUILDINGS & CAMPUS -->
90 90   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #38b76a;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
133 +<!-- SN_DRAFT_BANNER_START -->
134 +<div
135 + data-sn-draft-banner="1"
136 + style="
137 + width:100%;
138 + box-sizing:border-box;
139 + padding:9px 18px 8px;
140 + margin:0;
141 + background:#e94b13;
142 + color:#ffffff;
143 + border-bottom:1px solid #cf3f0d;
144 + font-size:13px;
145 + font-weight:800;
146 + line-height:1.2;
147 + letter-spacing:.10em;
148 + text-transform:uppercase;
149 + text-align:left;
150 + "
151 +>Draft!</div>
152 +<!-- SN_DRAFT_BANNER_END -->
153 +
91 91   <div style="padding:18px 18px 14px 18px;flex:1;">
92 92   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">CAMPUS</div>
93 93   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">Rooms, Buildings &amp; Campus</h3>
... ... @@ -111,6 +111,27 @@
111 111  
112 112   <!-- 4. ART & RESEARCH SERVICES -->
113 113   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #21b6d7;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
177 +<!-- SN_DRAFT_BANNER_START -->
178 +<div
179 + data-sn-draft-banner="1"
180 + style="
181 + width:100%;
182 + box-sizing:border-box;
183 + padding:9px 18px 8px;
184 + margin:0;
185 + background:#e94b13;
186 + color:#ffffff;
187 + border-bottom:1px solid #cf3f0d;
188 + font-size:13px;
189 + font-weight:800;
190 + line-height:1.2;
191 + letter-spacing:.10em;
192 + text-transform:uppercase;
193 + text-align:left;
194 + "
195 +>Draft!</div>
196 +<!-- SN_DRAFT_BANNER_END -->
197 +
114 114   <div style="padding:18px 18px 14px 18px;flex:1;">
115 115   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">ART &amp; RESEARCH</div>
116 116   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">Art &amp; Research Services</h3>
... ... @@ -136,6 +136,27 @@
136 136  
137 137   <!-- 5. STUDY, TEACHING & CURRICULUM -->
138 138   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #21b6d7;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
223 +<!-- SN_DRAFT_BANNER_START -->
224 +<div
225 + data-sn-draft-banner="1"
226 + style="
227 + width:100%;
228 + box-sizing:border-box;
229 + padding:9px 18px 8px;
230 + margin:0;
231 + background:#e94b13;
232 + color:#ffffff;
233 + border-bottom:1px solid #cf3f0d;
234 + font-size:13px;
235 + font-weight:800;
236 + line-height:1.2;
237 + letter-spacing:.10em;
238 + text-transform:uppercase;
239 + text-align:left;
240 + "
241 +>Draft!</div>
242 +<!-- SN_DRAFT_BANNER_END -->
243 +
139 139   <div style="padding:18px 18px 14px 18px;flex:1;">
140 140   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">STUDY &amp; TEACHING</div>
141 141   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">Study, Teaching &amp; Curriculum</h3>
... ... @@ -159,6 +159,27 @@
159 159  
160 160  <!-- 6. RESEARCH & DISCOVERY RESOURCES -->
161 161   <section style="display:flex;flex-direction:column;min-height:340px;border:1px solid #e3ded6;border-left:6px solid #21b6d7;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
267 +<!-- SN_DRAFT_BANNER_START -->
268 +<div
269 + data-sn-draft-banner="1"
270 + style="
271 + width:100%;
272 + box-sizing:border-box;
273 + padding:9px 18px 8px;
274 + margin:0;
275 + background:#e94b13;
276 + color:#ffffff;
277 + border-bottom:1px solid #cf3f0d;
278 + font-size:13px;
279 + font-weight:800;
280 + line-height:1.2;
281 + letter-spacing:.10em;
282 + text-transform:uppercase;
283 + text-align:left;
284 + "
285 +>Draft!</div>
286 +<!-- SN_DRAFT_BANNER_END -->
287 +
162 162   <div style="padding:18px 18px 14px 18px;flex:1;">
163 163   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">FIND · SEARCH · DISCOVER</div>
164 164   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">Research &amp; Discovery Resources</h3>
... ... @@ -182,6 +182,27 @@
182 182  
183 183   <!-- 7. PURCHASING, FINANCE & LOGISTICS -->
184 184   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #38b76a;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
311 +<!-- SN_DRAFT_BANNER_START -->
312 +<div
313 + data-sn-draft-banner="1"
314 + style="
315 + width:100%;
316 + box-sizing:border-box;
317 + padding:9px 18px 8px;
318 + margin:0;
319 + background:#e94b13;
320 + color:#ffffff;
321 + border-bottom:1px solid #cf3f0d;
322 + font-size:13px;
323 + font-weight:800;
324 + line-height:1.2;
325 + letter-spacing:.10em;
326 + text-transform:uppercase;
327 + text-align:left;
328 + "
329 +>Draft!</div>
330 +<!-- SN_DRAFT_BANNER_END -->
331 +
185 185   <div style="padding:18px 18px 14px 18px;flex:1;">
186 186   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">PURCHASE &amp; MOVE</div>
187 187   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">Purchasing, Finance &amp; Logistics</h3>
... ... @@ -205,6 +205,27 @@
205 205  
206 206   <!-- 8. LEGAL, DATA PROTECTION & GOVERNANCE -->
207 207   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #f0aa00;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
355 +<!-- SN_DRAFT_BANNER_START -->
356 +<div
357 + data-sn-draft-banner="1"
358 + style="
359 + width:100%;
360 + box-sizing:border-box;
361 + padding:9px 18px 8px;
362 + margin:0;
363 + background:#e94b13;
364 + color:#ffffff;
365 + border-bottom:1px solid #cf3f0d;
366 + font-size:13px;
367 + font-weight:800;
368 + line-height:1.2;
369 + letter-spacing:.10em;
370 + text-transform:uppercase;
371 + text-align:left;
372 + "
373 +>Draft!</div>
374 +<!-- SN_DRAFT_BANNER_END -->
375 +
208 208   <div style="padding:18px 18px 14px 18px;flex:1;">
209 209   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">RIGHTS &amp; RULES</div>
210 210   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">Legal, Data Protection &amp; Governance</h3>
... ... @@ -228,6 +228,27 @@
228 228  
229 229   <!-- 9. COMMUNICATION, MEDIA & EVENTS -->
230 230   <section style="display:flex;flex-direction:column;min-height:320px;border:1px solid #e3ded6;border-left:6px solid #e94b13;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
399 +<!-- SN_DRAFT_BANNER_START -->
400 +<div
401 + data-sn-draft-banner="1"
402 + style="
403 + width:100%;
404 + box-sizing:border-box;
405 + padding:9px 18px 8px;
406 + margin:0;
407 + background:#e94b13;
408 + color:#ffffff;
409 + border-bottom:1px solid #cf3f0d;
410 + font-size:13px;
411 + font-weight:800;
412 + line-height:1.2;
413 + letter-spacing:.10em;
414 + text-transform:uppercase;
415 + text-align:left;
416 + "
417 +>Draft!</div>
418 +<!-- SN_DRAFT_BANNER_END -->
419 +
231 231   <div style="padding:18px 18px 14px 18px;flex:1;">
232 232   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">COMMUNICATE &amp; ORGANISE</div>
233 233   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">Communication, Media &amp; Events</h3>
... ... @@ -251,6 +251,27 @@
251 251  
252 252   <!-- 10. INTERNATIONAL OFFICE -->
253 253   <section style="display:flex;flex-direction:column;min-height:300px;border:1px solid #e3ded6;border-left:6px solid #21b6d7;border-radius:12px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);overflow:hidden;">
443 +<!-- SN_DRAFT_BANNER_START -->
444 +<div
445 + data-sn-draft-banner="1"
446 + style="
447 + width:100%;
448 + box-sizing:border-box;
449 + padding:9px 18px 8px;
450 + margin:0;
451 + background:#e94b13;
452 + color:#ffffff;
453 + border-bottom:1px solid #cf3f0d;
454 + font-size:13px;
455 + font-weight:800;
456 + line-height:1.2;
457 + letter-spacing:.10em;
458 + text-transform:uppercase;
459 + text-align:left;
460 + "
461 +>Draft!</div>
462 +<!-- SN_DRAFT_BANNER_END -->
463 +
254 254   <div style="padding:18px 18px 14px 18px;flex:1;">
255 255   <div style="display:inline-block;font-size:12px;font-weight:700;letter-spacing:.065em;color:#4f4a44;margin-bottom:8px;padding:4px 7px;background:#f3efe8;border-radius:4px;">GO INTERNATIONAL</div>
256 256   <h3 style="font-size:21px;line-height:1.25;margin:0 0 8px 0;color:#252321;">International Office</h3>
... ... @@ -367,6 +367,38 @@
367 367  [data-sn-master-first-row]{
368 368   box-sizing:border-box;
369 369  }
580 +
581 +/* =========================================================
582 + FULL-WIDTH THREE-LINE NUMBER / TITLE / SUBTITLE BLOCKS
583 + ========================================================= */
584 +#xwikicontent .arsn-area-label[data-sn-three-line="1"]{
585 + display:grid!important;
586 + grid-template-columns:minmax(0,1fr)!important;
587 + grid-auto-rows:auto!important;
588 + width:100%!important;
589 + max-width:none!important;
590 + box-sizing:border-box!important;
591 + justify-items:start!important;
592 + align-items:start!important;
593 + gap:2px!important;
594 + text-align:left!important;
595 + text-align-last:left!important;
596 + text-justify:auto!important;
597 + word-spacing:normal!important;
598 + white-space:normal!important;
599 +}
600 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .arsn-area-number,
601 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .sn-area-label-title,
602 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .arsn-area-action{
603 + display:block!important;
604 + width:100%!important;
605 + margin:0!important;
606 + text-align:left!important;
607 + text-align-last:left!important;
608 + text-justify:auto!important;
609 + word-spacing:normal!important;
610 + white-space:normal!important;
611 +}
370 370  </style>
371 371  
372 372  <script data-sn-service-navigator-master="1">
... ... @@ -559,6 +559,227 @@
559 559   }
560 560  
561 561   /* =======================================================
804 + BORDERLESS FILLED RED/ORANGE CTA BUTTONS
805 + ======================================================= */
806 +
807 + function colourDistance(a,b){
808 + return Math.sqrt(
809 + Math.pow(a[0]-b[0],2)+
810 + Math.pow(a[1]-b[1],2)+
811 + Math.pow(a[2]-b[2],2)
812 + );
813 + }
814 +
815 + function makeFilledRedOrangeCTAsBorderless(){
816 + var RED_ORANGE=[233,75,19];
817 +
818 + Array.from(
819 + root.querySelectorAll(
820 + 'a,button,[role="button"],input[type="submit"],input[type="button"]'
821 + )
822 + ).forEach(function(el){
823 + if(!visible(el))return;
824 +
825 + var style=getComputedStyle(el);
826 + var rgb=parseRGB(style.backgroundColor);
827 +
828 + if(!rgb)return;
829 +
830 + if(
831 + colourDistance(
832 + rgb,
833 + RED_ORANGE
834 + )>55
835 + ){
836 + return;
837 + }
838 +
839 + var rect=el.getBoundingClientRect();
840 +
841 + if(
842 + rect.width<80||
843 + rect.height<24
844 + ){
845 + return;
846 + }
847 +
848 + el.style.setProperty(
849 + "border",
850 + "none",
851 + "important"
852 + );
853 +
854 + el.style.setProperty(
855 + "border-left",
856 + "none",
857 + "important"
858 + );
859 +
860 + el.style.setProperty(
861 + "border-top",
862 + "none",
863 + "important"
864 + );
865 +
866 + el.style.setProperty(
867 + "border-right",
868 + "none",
869 + "important"
870 + );
871 +
872 + el.style.setProperty(
873 + "border-bottom",
874 + "none",
875 + "important"
876 + );
877 +
878 + el.style.setProperty(
879 + "box-shadow",
880 + "none",
881 + "important"
882 + );
883 + });
884 + }
885 +
886 + /* =======================================================
887 + FULL-WIDTH THREE-LINE AREA LABELS
888 + ======================================================= */
889 +
890 + function compactText(value){
891 + return String(value||"")
892 + .replace(/\s+/g," ")
893 + .trim();
894 + }
895 +
896 + function makeThreeLineAreaLabels(){
897 + Array.from(
898 + root.querySelectorAll(
899 + ".arsn-area-label"
900 + )
901 + ).forEach(function(label){
902 + if(
903 + label.getAttribute(
904 + "data-sn-three-line"
905 + )==="1"
906 + ){
907 + return;
908 + }
909 +
910 + var number=
911 + label.querySelector(
912 + ":scope > .arsn-area-number"
913 + );
914 +
915 + var action=
916 + label.querySelector(
917 + ":scope > .arsn-area-action"
918 + );
919 +
920 + if(
921 + !number||
922 + !action
923 + ){
924 + return;
925 + }
926 +
927 + var clone=
928 + label.cloneNode(true);
929 +
930 + var cloneNumber=
931 + clone.querySelector(
932 + ":scope > .arsn-area-number"
933 + );
934 +
935 + var cloneAction=
936 + clone.querySelector(
937 + ":scope > .arsn-area-action"
938 + );
939 +
940 + if(cloneNumber){
941 + cloneNumber.remove();
942 + }
943 +
944 + if(cloneAction){
945 + cloneAction.remove();
946 + }
947 +
948 + var titleText=
949 + compactText(
950 + clone.textContent
951 + );
952 +
953 + if(!titleText){
954 + return;
955 + }
956 +
957 + var numberNode=
958 + number.cloneNode(true);
959 +
960 + var actionNode=
961 + action.cloneNode(true);
962 +
963 + var titleNode=
964 + document.createElement(
965 + "span"
966 + );
967 +
968 + titleNode.className=
969 + "sn-area-label-title";
970 +
971 + titleNode.textContent=
972 + titleText;
973 +
974 + while(label.firstChild){
975 + label.removeChild(
976 + label.firstChild
977 + );
978 + }
979 +
980 + label.appendChild(
981 + numberNode
982 + );
983 +
984 + label.appendChild(
985 + titleNode
986 + );
987 +
988 + label.appendChild(
989 + actionNode
990 + );
991 +
992 + label.setAttribute(
993 + "data-sn-three-line",
994 + "1"
995 + );
996 +
997 + var head=
998 + label.closest(
999 + ".arsn-area-head"
1000 + );
1001 +
1002 + if(head){
1003 + head.style.setProperty(
1004 + "width",
1005 + "100%",
1006 + "important"
1007 + );
1008 +
1009 + head.style.setProperty(
1010 + "max-width",
1011 + "100%",
1012 + "important"
1013 + );
1014 +
1015 + head.style.setProperty(
1016 + "box-sizing",
1017 + "border-box",
1018 + "important"
1019 + );
1020 + }
1021 + });
1022 + }
1023 +
1024 + /* =======================================================
562 562   PLACEHOLDER BADGE
563 563   ======================================================= */
564 564  
... ... @@ -1329,6 +1329,9 @@
1329 1329   var headers=
1330 1330   applyOverviewPalette();
1331 1331  
1795 + makeThreeLineAreaLabels();
1796 + makeFilledRedOrangeCTAsBorderless();
1797 +
1332 1332   if(
1333 1333   window.innerWidth>
1334 1334   MOBILE_MAX
... ... @@ -1430,3 +1430,309 @@
1430 1430  <!-- SN_SERVICE_NAVIGATOR_MASTER_STYLE_END -->
1431 1431  {{/html}}
1432 1432  
1899 +{{html clean="false"}}
1900 +<!-- SN_LAST_MODIFIED_FOOTER_V3_START -->
1901 +<script data-sn-last-modified-footer="3">
1902 +(function () {
1903 + "use strict";
1904 +
1905 + function visible(el) {
1906 + if (!el) return false;
1907 +
1908 + var style = window.getComputedStyle(el);
1909 +
1910 + return (
1911 + style.display !== "none" &&
1912 + style.visibility !== "hidden" &&
1913 + el.getClientRects().length > 0
1914 + );
1915 + }
1916 +
1917 +
1918 + function moveLastModified() {
1919 + var content =
1920 + document.getElementById("xwikicontent");
1921 +
1922 + if (!content) {
1923 + return false;
1924 + }
1925 +
1926 +
1927 + /*
1928 + * XWiki kann ID, Klasse oder responsive Duplikate ausgeben.
1929 + */
1930 + var nodes =
1931 + Array.from(
1932 + document.querySelectorAll(
1933 + ".xdocLastModification, #xdocLastModification"
1934 + )
1935 + );
1936 +
1937 +
1938 + nodes =
1939 + nodes.filter(function (node, index, list) {
1940 + return list.indexOf(node) === index;
1941 + });
1942 +
1943 +
1944 + if (!nodes.length) {
1945 + return false;
1946 + }
1947 +
1948 +
1949 + var info =
1950 + nodes.find(visible) ||
1951 + nodes[0];
1952 +
1953 +
1954 + /*
1955 + * Eventuelle zweite responsive Variante ausblenden.
1956 + */
1957 + nodes.forEach(function (node) {
1958 + if (node !== info) {
1959 + node.style.setProperty(
1960 + "display",
1961 + "none",
1962 + "important"
1963 + );
1964 + }
1965 + });
1966 +
1967 +
1968 + var footer =
1969 + document.getElementById(
1970 + "sn-last-modified-footer"
1971 + );
1972 +
1973 +
1974 + if (!footer) {
1975 + footer =
1976 + document.createElement("div");
1977 +
1978 + footer.id =
1979 + "sn-last-modified-footer";
1980 +
1981 + footer.setAttribute(
1982 + "data-sn-last-modified-footer",
1983 + "3"
1984 + );
1985 +
1986 +
1987 + footer.style.setProperty(
1988 + "box-sizing",
1989 + "border-box"
1990 + );
1991 +
1992 + footer.style.setProperty(
1993 + "width",
1994 + "100%"
1995 + );
1996 +
1997 + footer.style.setProperty(
1998 + "max-width",
1999 + "1400px"
2000 + );
2001 +
2002 + footer.style.setProperty(
2003 + "margin",
2004 + "34px auto 0"
2005 + );
2006 +
2007 + footer.style.setProperty(
2008 + "padding",
2009 + "10px 0 0"
2010 + );
2011 +
2012 + footer.style.setProperty(
2013 + "border-top",
2014 + "1px solid #e3ded6"
2015 + );
2016 +
2017 + footer.style.setProperty(
2018 + "color",
2019 + "#8a837b"
2020 + );
2021 +
2022 + footer.style.setProperty(
2023 + "font-size",
2024 + "12px"
2025 + );
2026 +
2027 + footer.style.setProperty(
2028 + "line-height",
2029 + "1.45"
2030 + );
2031 +
2032 + footer.style.setProperty(
2033 + "text-align",
2034 + "left"
2035 + );
2036 +
2037 + footer.style.setProperty(
2038 + "word-spacing",
2039 + "normal"
2040 + );
2041 + }
2042 +
2043 +
2044 + /*
2045 + * Footer wirklich ans Ende des Seiteninhalts hängen.
2046 + * appendChild verschiebt ein bestehendes Element automatisch.
2047 + */
2048 + content.appendChild(
2049 + footer
2050 + );
2051 +
2052 +
2053 + /*
2054 + * ORIGINAL-XWiki-Element verschieben.
2055 + *
2056 + * Deshalb bleiben automatisch korrekt:
2057 + * - Benutzername
2058 + * - Profil-Link
2059 + * - Datum
2060 + * - DE / EN
2061 + */
2062 + if (info.parentNode !== footer) {
2063 + footer.appendChild(
2064 + info
2065 + );
2066 + }
2067 +
2068 +
2069 + info.setAttribute(
2070 + "data-sn-last-modified-moved",
2071 + "3"
2072 + );
2073 +
2074 +
2075 + info.style.setProperty(
2076 + "display",
2077 + "block",
2078 + "important"
2079 + );
2080 +
2081 + info.style.setProperty(
2082 + "margin",
2083 + "0",
2084 + "important"
2085 + );
2086 +
2087 + info.style.setProperty(
2088 + "padding",
2089 + "0",
2090 + "important"
2091 + );
2092 +
2093 + info.style.setProperty(
2094 + "font-size",
2095 + "12px",
2096 + "important"
2097 + );
2098 +
2099 + info.style.setProperty(
2100 + "line-height",
2101 + "1.45",
2102 + "important"
2103 + );
2104 +
2105 + info.style.setProperty(
2106 + "color",
2107 + "inherit",
2108 + "important"
2109 + );
2110 +
2111 + info.style.setProperty(
2112 + "text-align",
2113 + "left",
2114 + "important"
2115 + );
2116 +
2117 +
2118 + Array.from(
2119 + info.querySelectorAll("a")
2120 + ).forEach(function (link) {
2121 +
2122 + link.style.setProperty(
2123 + "color",
2124 + "inherit",
2125 + "important"
2126 + );
2127 +
2128 + link.style.setProperty(
2129 + "text-decoration",
2130 + "underline",
2131 + "important"
2132 + );
2133 +
2134 + });
2135 +
2136 +
2137 + return true;
2138 + }
2139 +
2140 +
2141 + function start() {
2142 + if (moveLastModified()) {
2143 + return;
2144 + }
2145 +
2146 +
2147 + /*
2148 + * Falls der Skin die Zeile erst später rendert.
2149 + */
2150 + var observer =
2151 + new MutationObserver(function () {
2152 +
2153 + if (moveLastModified()) {
2154 + observer.disconnect();
2155 + }
2156 +
2157 + });
2158 +
2159 +
2160 + observer.observe(
2161 + document.documentElement,
2162 + {
2163 + childList: true,
2164 + subtree: true
2165 + }
2166 + );
2167 +
2168 +
2169 + window.setTimeout(
2170 + function () {
2171 + observer.disconnect();
2172 + },
2173 + 5000
2174 + );
2175 + }
2176 +
2177 +
2178 + if (document.readyState === "loading") {
2179 +
2180 + document.addEventListener(
2181 + "DOMContentLoaded",
2182 + start,
2183 + { once: true }
2184 + );
2185 +
2186 + } else {
2187 +
2188 + start();
2189 +
2190 + }
2191 +
2192 +
2193 + /*
2194 + * Absicherung gegen verzögertes XWiki-Rendering.
2195 + */
2196 + window.setTimeout(moveLastModified, 250);
2197 + window.setTimeout(moveLastModified, 1000);
2198 + window.setTimeout(moveLastModified, 2500);
2199 +
2200 +})();
2201 +</script>
2202 +<!-- SN_LAST_MODIFIED_FOOTER_V3_END -->
2203 +{{/html}}
2204 +
XWiki.JavaScriptExtension[0]
parse
... ... @@ -1,0 +1,1 @@
1 +No
code
... ... @@ -1,0 +1,189 @@
1 +(function () {
2 + "use strict";
3 +
4 + function isServiceNavigatorPage() {
5 + var path;
6 +
7 + try {
8 + path = decodeURIComponent(window.location.pathname);
9 + } catch (e) {
10 + path = window.location.pathname;
11 + }
12 +
13 + /*
14 + * Nur normale VIEW-Seiten innerhalb des Service Navigators.
15 + */
16 + return /^\/bin\/view\/Service Navigator(?:\/|$)/.test(path);
17 + }
18 +
19 +
20 + function moveLastModified() {
21 + if (!isServiceNavigatorPage()) {
22 + return;
23 + }
24 +
25 + var info =
26 + document.querySelector(
27 + ".xdocLastModification"
28 + );
29 +
30 + var content =
31 + document.getElementById(
32 + "xwikicontent"
33 + );
34 +
35 + if (!info || !content) {
36 + return;
37 + }
38 +
39 +
40 + if (
41 + info.getAttribute(
42 + "data-sn-last-modified-moved"
43 + ) === "1"
44 + ) {
45 + return;
46 + }
47 +
48 +
49 + var footer =
50 + document.getElementById(
51 + "sn-last-modified-footer"
52 + );
53 +
54 +
55 + if (!footer) {
56 + footer =
57 + document.createElement(
58 + "div"
59 + );
60 +
61 + footer.id =
62 + "sn-last-modified-footer";
63 +
64 + footer.setAttribute(
65 + "data-sn-last-modified-footer",
66 + "1"
67 + );
68 +
69 + footer.style.cssText = [
70 + "margin-top:34px",
71 + "padding-top:10px",
72 + "border-top:1px solid #e3ded6",
73 + "color:#8a837b",
74 + "font-size:12px",
75 + "line-height:1.45",
76 + "text-align:left",
77 + "word-spacing:normal"
78 + ].join(";");
79 +
80 + content.appendChild(
81 + footer
82 + );
83 + }
84 +
85 +
86 + /*
87 + * Original-XWiki-Element verschieben.
88 + * Dadurch bleiben Benutzername, Profil-Link,
89 + * Datum und Sprachfassung erhalten.
90 + */
91 + footer.appendChild(
92 + info
93 + );
94 +
95 +
96 + info.setAttribute(
97 + "data-sn-last-modified-moved",
98 + "1"
99 + );
100 +
101 +
102 + info.style.setProperty(
103 + "margin",
104 + "0",
105 + "important"
106 + );
107 +
108 + info.style.setProperty(
109 + "padding",
110 + "0",
111 + "important"
112 + );
113 +
114 + info.style.setProperty(
115 + "font-size",
116 + "12px",
117 + "important"
118 + );
119 +
120 + info.style.setProperty(
121 + "line-height",
122 + "1.45",
123 + "important"
124 + );
125 +
126 + info.style.setProperty(
127 + "color",
128 + "inherit",
129 + "important"
130 + );
131 +
132 + info.style.setProperty(
133 + "text-align",
134 + "left",
135 + "important"
136 + );
137 +
138 +
139 + Array.from(
140 + info.querySelectorAll("a")
141 + ).forEach(function (link) {
142 +
143 + link.style.setProperty(
144 + "color",
145 + "inherit",
146 + "important"
147 + );
148 +
149 + link.style.setProperty(
150 + "text-decoration",
151 + "underline",
152 + "important"
153 + );
154 +
155 + });
156 + }
157 +
158 +
159 + if (
160 + document.readyState === "loading"
161 + ) {
162 +
163 + document.addEventListener(
164 + "DOMContentLoaded",
165 + moveLastModified,
166 + { once: true }
167 + );
168 +
169 + } else {
170 +
171 + moveLastModified();
172 +
173 + }
174 +
175 +
176 + /*
177 + * Für verzögertes XWiki-Rendering.
178 + */
179 + window.setTimeout(
180 + moveLastModified,
181 + 250
182 + );
183 +
184 + window.setTimeout(
185 + moveLastModified,
186 + 1000
187 + );
188 +
189 +})();
name
... ... @@ -1,0 +1,1 @@
1 +Service Navigator · Last modified footer
cache
... ... @@ -1,0 +1,1 @@
1 +default
use
... ... @@ -1,0 +1,1 @@
1 +always