Changes for page Service Navigator
Last modified by Veronika Kocher on Friday, 09 Oct 2026 12:12
From version 25.2
edited by Veronika Kocher
on Friday, 09 Oct 2026 12:12
on Friday, 09 Oct 2026 12:12
Change comment:
There is no comment for this version
To version 23.1
edited by Veronika Kocher
on Friday, 09 Oct 2026 11:26
on Friday, 09 Oct 2026 11:26
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1896,309 +1896,3 @@ 1896 1896 <!-- SN_SERVICE_NAVIGATOR_MASTER_STYLE_END --> 1897 1897 {{/html}} 1898 1898 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,1 +1,0 @@ 1 -No - code
-
... ... @@ -1,189 +1,0 @@ 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,1 +1,0 @@ 1 -Service Navigator · Last modified footer - cache
-
... ... @@ -1,1 +1,0 @@ 1 -default - use
-
... ... @@ -1,1 +1,0 @@ 1 -always