src/main/webapp/WEB-INF/jsp/site.jsp

changeset 367
0a9065936aac
parent 365
0e03dcb631ee
--- a/src/main/webapp/WEB-INF/jsp/site.jsp	Fri Mar 14 08:09:05 2025 +0100
+++ b/src/main/webapp/WEB-INF/jsp/site.jsp	Sat May 17 17:39:48 2025 +0200
@@ -31,7 +31,7 @@
 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
 
 <%-- Version suffix for forcing browsers to update the CSS / JS files --%>
-<c:set scope="page" var="versionSuffix" value="20250313"/>
+<c:set scope="page" var="versionSuffix" value="20250517"/>
 
 <%-- Make the base href easily available at request scope --%>
 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/>
@@ -87,6 +87,16 @@
     </c:if>
     <script>
         const baseHref='${baseHref}';
+        <c:if test="${showWhatsNew}">
+        function closeWhatsNew(showMore) {
+            if (showMore) {
+                location.assign(baseHref + 'about');
+            } else {
+                document.getElementById('whats-new').style.display = 'none';
+                document.getElementById('page-area').classList.remove('blurred');
+            }
+        }
+        </c:if>
     </script>
     <script src="issue-search.js?v=${versionSuffix}" type="text/javascript"></script>
     <c:if test="${not empty javascriptFile}">
@@ -94,7 +104,7 @@
     </c:if>
 </head>
 <body>
-    <div id="page-area">
+    <div id="page-area" <c:if test="${showWhatsNew}">class="blurred"</c:if> >
         <div id="mainMenu">
             <div class="menuEntry"
                  <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> >
@@ -143,5 +153,16 @@
             </div>
         </div>
     </div>
+    <c:if test="${showWhatsNew}">
+    <div id="whats-new">
+        <div>
+            <fmt:message key="whats-new.info"/>
+        </div>
+        <div class="hright bigskip">
+            <a class="button" onclick="closeWhatsNew(false)"><fmt:message key="button.dismiss"/></a>
+            <a class="button submit" onclick="closeWhatsNew(true)"><fmt:message key="button.whats-new"/></a>
+        </div>
+    </div>
+    </c:if>
 </body>
 </html>

mercurial