Sun, 28 Jul 2024 12:36:42 +0200
issue viewer's page title now starts with the ID - fixes #396
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sun Jul 28 12:19:42 2024 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sun Jul 28 12:36:42 2024 +0200 @@ -346,7 +346,7 @@ val comments = dao.listComments(issue) with(http) { - pageTitle = "${path.projectInfo.project.name}: #${issue.id} ${issue.subject}" + pageTitle = "#${issue.id} ${issue.subject} (${path.projectInfo.project.name})" view = IssueDetailView( path, issue,
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Sun Jul 28 12:19:42 2024 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Sun Jul 28 12:36:42 2024 +0200 @@ -27,6 +27,7 @@ <h3>Version 1.3.0 - Vorschau</h3> <ul> + <li>Der Seitentitel, wenn ein Vorgang betrachtet wird, beginnt nun mit der Vorgangs-ID.</li> <li>Aktualisierung auf Kotlin 2.0 und Java 21.</li> </ul>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf Sun Jul 28 12:19:42 2024 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Sun Jul 28 12:36:42 2024 +0200 @@ -27,6 +27,7 @@ <h3>Version 1.3.0 - preview</h3> <ul> + <li>When viewing an issue, the page title now starts with the issue ID.</li> <li>Upgrade to Kotlin 2.0 and change JVM target to Java 21.</li> </ul>
--- a/src/main/webapp/WEB-INF/jsp/site.jsp Sun Jul 28 12:19:42 2024 +0200 +++ b/src/main/webapp/WEB-INF/jsp/site.jsp Sun Jul 28 12:36:42 2024 +0200 @@ -69,8 +69,8 @@ <head> <base href="${baseHref}"> <title> - LightPIT - <c:if test="${not empty pageTitle}"> - <c:out value="${pageTitle}"/></c:if> + <c:if test="${empty pageTitle}">LightPIT</c:if> + <c:out value="${pageTitle}"/> </title> <meta charset="UTF-8"> <c:if test="${not empty redirectLocation}">