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 24.1
edited by Veronika Kocher
on Friday, 09 Oct 2026 11:55
on Friday, 09 Oct 2026 11:55
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 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]
-
- code
-
... ... @@ -10,9 +10,6 @@ 10 10 path = window.location.pathname; 11 11 } 12 12 13 - /* 14 - * Nur normale VIEW-Seiten innerhalb des Service Navigators. 15 - */ 16 16 return /^\/bin\/view\/Service Navigator(?:\/|$)/.test(path); 17 17 } 18 18 ... ... @@ -36,7 +36,6 @@ 36 36 return; 37 37 } 38 38 39 - 40 40 if ( 41 41 info.getAttribute( 42 42 "data-sn-last-modified-moved" ... ... @@ -51,12 +51,9 @@ 51 51 "sn-last-modified-footer" 52 52 ); 53 53 54 - 55 55 if (!footer) { 56 56 footer = 57 - document.createElement( 58 - "div" 59 - ); 52 + document.createElement("div"); 60 60 61 61 footer.id = 62 62 "sn-last-modified-footer"; ... ... @@ -84,21 +84,18 @@ 84 84 85 85 86 86 /* 87 - * Original-XWiki-Element verschieben. 88 - * Dadurch bleiben Benutzername, Profil-Link, 89 - * Datum und Sprachfassung erhalten. 80 + * Original-XWiki-Zeile verschieben. 81 + * Nicht kopieren. 90 90 */ 91 91 footer.appendChild( 92 92 info 93 93 ); 94 94 95 - 96 96 info.setAttribute( 97 97 "data-sn-last-modified-moved", 98 98 "1" 99 99 ); 100 100 101 - 102 102 info.style.setProperty( 103 103 "margin", 104 104 "0", ... ... @@ -129,17 +129,10 @@ 129 129 "important" 130 130 ); 131 131 132 - info.style.setProperty( 133 - "text-align", 134 - "left", 135 - "important" 136 - ); 137 137 138 - 139 139 Array.from( 140 140 info.querySelectorAll("a") 141 141 ).forEach(function (link) { 142 - 143 143 link.style.setProperty( 144 144 "color", 145 145 "inherit", ... ... @@ -151,7 +151,6 @@ 151 151 "underline", 152 152 "important" 153 153 ); 154 - 155 155 }); 156 156 } 157 157 ... ... @@ -159,23 +159,15 @@ 159 159 if ( 160 160 document.readyState === "loading" 161 161 ) { 162 - 163 163 document.addEventListener( 164 164 "DOMContentLoaded", 165 165 moveLastModified, 166 166 { once: true } 167 167 ); 168 - 169 169 } else { 170 - 171 171 moveLastModified(); 172 - 173 173 } 174 174 175 - 176 - /* 177 - * Für verzögertes XWiki-Rendering. 178 - */ 179 179 window.setTimeout( 180 180 moveLastModified, 181 181 250 - use
-
... ... @@ -1,1 +1,1 @@ 1 -a lways1 +currentPage