Sun, 05 Oct 2025 17:59:54 +0200
variant links now only switch the selected variant - resolves #736
--- a/src/main/kotlin/de/uapcore/lightpit/Constants.kt Sun Oct 05 17:47:31 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/Constants.kt Sun Oct 05 17:59:54 2025 +0200 @@ -29,7 +29,7 @@ /** * A data in yyyy-mm-dd format to identify the release. */ - const val VERSION_DATE = "2025-10-04" + const val VERSION_DATE = "2025-10-05" /** * The path where the JSP files reside.
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Sun Oct 05 17:47:31 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Sun Oct 05 17:59:54 2025 +0200 @@ -36,10 +36,11 @@ <li>Vorgänge können nun auch direkt über die Vorgangsnummer (anstatt Raute + Nummer) verlinkt werden.</li> <li>Die Vorschläge in den Suchfeldern für Vorgänge sind nun absteigend nach Vorgangsnummer sortiert.</li> <li>Die Standardkategorie für neue Vorgänge in veröffentlichten Versionen ist nun "Fehler" anstelle von "Feature".</li> + <li>Die Links zu den Varianten in der Vorgangsansicht wechseln nun lediglich die geöffnete Variante, anstatt zur Vorgangsliste zurückzukehren.</li> <li>Fehlerhafte Delta-Anzeige in RSS-Feeds behoben.</li> <li>Ungefiltertes HTML aus Vorgangsbeschreibungen in RSS-Feeds behoben.</li> <li>Vorgänge können nicht länger mit sich selbst verlinkt werden.</li> - <li>Fehler in der Deutschen Übersetzung behoben.</li> + <li>Fehler in der deutschen Übersetzung behoben.</li> <li>Das Navigationsmenü verliert nicht mehr so schnell an Breite, wenn das Fenster verkleinert wird.</li> </ul>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf Sun Oct 05 17:47:31 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Sun Oct 05 17:59:54 2025 +0200 @@ -36,6 +36,7 @@ <li>Change that you can now relate issues by just submitting their number (instead of hash + number).</li> <li>Change that issues suggested by the search boxes are now sorted by ID in descending order.</li> <li>Change that the default category for new issues in released versions is Bug instead of Feature.</li> + <li>Change that the variant links in the issue view now stay within the issue and only switch the opened variant.</li> <li>Fix wrong diffs in RSS feed.</li> <li>Fix unescaped HTML in RSS feed.</li> <li>Fix that issues could relate to themselves.</li>
--- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp Sun Oct 05 17:47:31 2025 +0200 +++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp Sun Oct 05 17:59:54 2025 +0200 @@ -116,7 +116,18 @@ <c:forEach items="${issue.variantStatus}" var="vs"> <div> <div> - <a href="./projects/${issue.project.node}/issues/-/-/${vs.key.node}/"><c:out value="${vs.key.name}"/></a>: + <c:if test="${not viewmodel.pathInfos.inProject}"> + <c:set var="variantLink" value="./projects/${issue.project.node}/issues/-/-/${vs.key.node}/${issue.id}"/> + </c:if> + <c:if test="${viewmodel.pathInfos.inProject}"> + <c:set var="variantLink" value="./projects/${issue.project.node}/issues/${viewmodel.pathInfos.versionInfo.node}/${viewmodel.pathInfos.componentInfo.node}/${vs.key.node}/${issue.id}"/> + </c:if> + <c:if test="${vs.key eq viewmodel.openedVariant}"> + <span class="selected-variant"><c:out value="${vs.key.name}"/></span>: + </c:if> + <c:if test="${vs.key ne viewmodel.openedVariant}"> + <a href="${variantLink}"><c:out value="${vs.key.name}"/></a>: + </c:if> </div> <div class="issue-tag phase-${vs.value.phase.number}" title="<c:out value="${vs.key.description}"/>"
--- a/src/main/webapp/projects.css Sun Oct 05 17:47:31 2025 +0200 +++ b/src/main/webapp/projects.css Sun Oct 05 17:59:54 2025 +0200 @@ -199,6 +199,11 @@ flex-wrap: wrap; } +.selected-variant { + font-weight: bolder; + text-decoration: underline; +} + table.relation-editor input, table.relation-editor button, table.relation-editor .button {