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

changeset 311
bf67e0ff7131
parent 308
7b5f6dd8dad6
child 313
7cfe88b8e219
--- a/src/main/webapp/WEB-INF/jsp/site.jsp	Mon Aug 05 17:41:56 2024 +0200
+++ b/src/main/webapp/WEB-INF/jsp/site.jsp	Mon Aug 05 18:40:47 2024 +0200
@@ -31,14 +31,11 @@
 <%@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="20240731"/>
+<c:set scope="page" var="versionSuffix" value="20240804"/>
 
 <%-- Make the base href easily available at request scope --%>
 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/>
 
-<%-- The feed URL for this page. --%>
-<c:set scope="page" var="feedHref" value="${requestScope[Constants.REQ_ATTR_FEED_HREF]}"/>
-
 <%-- Define an alias for the request path --%>
 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/>
 
@@ -77,8 +74,8 @@
         <meta http-equiv="refresh" content="0; URL=${redirectLocation}">
     </c:if>
     <link rel="stylesheet" href="lightpit.css?v=${versionSuffix}" type="text/css">
-    <c:if test="${not empty feedHref}">
-        <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="${feedHref}"/>
+    <c:if test="${not empty requestScope[Constants.REQ_ATTR_VIEWMODEL].feedHref}">
+        <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="${requestScope[Constants.REQ_ATTR_VIEWMODEL].feedHref}"/>
     </c:if>
     <c:if test="${not empty extraCss}">
         <c:forEach items="${extraCss}" var="cssFile">
@@ -99,6 +96,12 @@
                 </a>
             </div>
             <div class="menuEntry"
+                 <c:if test="${fn:startsWith(requestPath, '/issues/')}">data-active</c:if> >
+                <a href="issues/">
+                    <fmt:message key="menu.issues"/>
+                </a>
+            </div>
+            <div class="menuEntry"
                  <c:if test="${fn:startsWith(requestPath, '/users/')}">data-active</c:if> >
                 <a href="users/">
                     <fmt:message key="menu.users"/>

mercurial