src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt

changeset 205
7725a79416f3
parent 200
a5ddfaf6b469
child 207
479dd7993ef9
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sun Aug 01 18:14:36 2021 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sun Aug 01 18:56:28 2021 +0200
@@ -195,6 +195,7 @@
             )).sortedWith(DEFAULT_ISSUE_SORTER)
 
             with(http) {
+                pageTitle = project.name
                 view = ProjectDetails(projectInfo, issues, version, component)
                 feedPath = feedPath(project)
                 navigationMenu = activeProjectNavMenu(
@@ -263,6 +264,7 @@
         }
 
         with(http) {
+            pageTitle = "${projectInfo.project.name} - ${i18n("navmenu.versions")}"
             view = VersionsView(
                 projectInfo,
                 dao.listVersionSummaries(projectInfo.project)
@@ -346,6 +348,7 @@
         }
 
         with(http) {
+            pageTitle = "${projectInfo.project.name} - ${i18n("navmenu.components")}"
             view = ComponentsView(
                 projectInfo,
                 dao.listComponentSummaries(projectInfo.project)
@@ -436,6 +439,7 @@
             val comments = dao.listComments(issue)
 
             with(http) {
+                pageTitle = "${projectInfo.project.name}: #${issue.id} ${issue.subject}"
                 view = IssueDetailView(issue, comments, project, version, component)
                 // TODO: feed path for this particular issue
                 feedPath = feedPath(projectInfo.project)

mercurial