add version info to issue overview - fixes #399

Wed, 31 Jul 2024 21:18:56 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 31 Jul 2024 21:18:56 +0200
changeset 308
7b5f6dd8dad6
parent 307
23fe9f174d2d
child 309
a28b91693163

add version info to issue overview - fixes #399

src/main/webapp/WEB-INF/changelogs/changelog-de.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/project-details.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/site.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jspf/issue-list.jspf file | annotate | diff | comparison | revisions
src/main/webapp/projects.css file | annotate | diff | comparison | revisions
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Tue Jul 30 18:53:39 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Wed Jul 31 21:18:56 2024 +0200
@@ -32,6 +32,7 @@
     <li>Der "OK" Button im Vorgangseditor führt nun zurück zur Vorgangsübersicht.</li>
     <li>Ein neuer "Speichern" Button im Vorgangseditor führt, wie zuvor, zurück zur Vorgangsansicht.</li>
     <li>Der Seitentitel, wenn ein Vorgang betrachtet wird, beginnt nun mit der Vorgangs-ID.</li>
+    <li>Die Vorgangsübersicht zeigt nun die Zielversion jedes Vorgangs, wenn im Navigationsmenü keine Version gewählt ist.</li>
     <li>Aktualisierung auf Kotlin 2.0 und Java 21.</li>
 </ul>
 
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Tue Jul 30 18:53:39 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Wed Jul 31 21:18:56 2024 +0200
@@ -32,6 +32,7 @@
     <li>The "OK" button in the issue editor now leads to the issue overview.</li>
     <li>A new "Save" button in the issue editor retains the old behavior and returns to the issue viewer.</li>
     <li>When viewing an issue, the page title now starts with the issue ID.</li>
+    <li>The issue overview now shows the target version of an issue when no version is selected in the left menu.</li>
     <li>Upgrade to Kotlin 2.0 and change JVM target to Java 21.</li>
 </ul>
 
--- a/src/main/webapp/WEB-INF/jsp/project-details.jsp	Tue Jul 30 18:53:39 2024 +0200
+++ b/src/main/webapp/WEB-INF/jsp/project-details.jsp	Wed Jul 31 21:18:56 2024 +0200
@@ -48,6 +48,7 @@
 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
 <%@include file="../jspf/issue-summary.jspf"%>
 
+<c:set var="showVersionInfo" value="false"/>
 <c:choose>
     <c:when test="${empty viewmodel.versionInfo}">
         <h2>
@@ -55,6 +56,7 @@
         </h2>
         <c:set var="summary" value="${viewmodel.issueSummary}"/>
         <c:set var="issues" value="${viewmodel.issues}"/>
+        <c:set var="showVersionInfo" value="true"/>
         <%@include file="../jspf/issue-summary.jspf"%>
         <c:if test="${not empty issues}">
             <%@include file="../jspf/issue-list.jspf"%>
--- a/src/main/webapp/WEB-INF/jsp/site.jsp	Tue Jul 30 18:53:39 2024 +0200
+++ b/src/main/webapp/WEB-INF/jsp/site.jsp	Wed Jul 31 21:18:56 2024 +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="20240730"/>
+<c:set scope="page" var="versionSuffix" value="20240731"/>
 
 <%-- Make the base href easily available at request scope --%>
 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/>
--- a/src/main/webapp/WEB-INF/jspf/issue-list.jspf	Tue Jul 30 18:53:39 2024 +0200
+++ b/src/main/webapp/WEB-INF/jspf/issue-list.jspf	Wed Jul 31 21:18:56 2024 +0200
@@ -1,6 +1,7 @@
 <%--
 issues: List<Issue>
 issuesHref: String
+showVersionInfo: boolean
 --%>
 <table class="fullwidth datatable medskip">
     <colgroup>
@@ -33,6 +34,11 @@
                 <div class="issue-tag phase-${issue.status.phase.number}">
                     <fmt:message key="issue.status.${issue.status}" />
                 </div>
+                <c:if test="${showVersionInfo and issue.resolved != null}">
+                <div class="issue-tag">
+                    <c:out value="${issue.resolved.name}"/>
+                </div>
+                </c:if>
             </td>
             <td>
                 <span class="nowrap <c:if test="${issue.overdue}">eta-overdue</c:if> ">
--- a/src/main/webapp/projects.css	Tue Jul 30 18:53:39 2024 +0200
+++ b/src/main/webapp/projects.css	Wed Jul 31 21:18:56 2024 +0200
@@ -73,7 +73,7 @@
     border-width: thin;
     border-color: silver;
     border-radius: 4pt;
-    background: lightgray;
+    background: darkgray;
     text-align: center;
     font-weight: bolder;
     font-size: x-small;

mercurial