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

changeset 205
7725a79416f3
parent 200
a5ddfaf6b469
child 207
479dd7993ef9
equal deleted inserted replaced
204:54c612612c69 205:7725a79416f3
193 version = version?.let { SpecificFilter(it) } ?: AllFilter(), 193 version = version?.let { SpecificFilter(it) } ?: AllFilter(),
194 component = component?.let { SpecificFilter(it) } ?: AllFilter() 194 component = component?.let { SpecificFilter(it) } ?: AllFilter()
195 )).sortedWith(DEFAULT_ISSUE_SORTER) 195 )).sortedWith(DEFAULT_ISSUE_SORTER)
196 196
197 with(http) { 197 with(http) {
198 pageTitle = project.name
198 view = ProjectDetails(projectInfo, issues, version, component) 199 view = ProjectDetails(projectInfo, issues, version, component)
199 feedPath = feedPath(project) 200 feedPath = feedPath(project)
200 navigationMenu = activeProjectNavMenu( 201 navigationMenu = activeProjectNavMenu(
201 dao.listProjects(), 202 dao.listProjects(),
202 projectInfo, 203 projectInfo,
261 http.response.sendError(404) 262 http.response.sendError(404)
262 return 263 return
263 } 264 }
264 265
265 with(http) { 266 with(http) {
267 pageTitle = "${projectInfo.project.name} - ${i18n("navmenu.versions")}"
266 view = VersionsView( 268 view = VersionsView(
267 projectInfo, 269 projectInfo,
268 dao.listVersionSummaries(projectInfo.project) 270 dao.listVersionSummaries(projectInfo.project)
269 ) 271 )
270 feedPath = feedPath(projectInfo.project) 272 feedPath = feedPath(projectInfo.project)
344 http.response.sendError(404) 346 http.response.sendError(404)
345 return 347 return
346 } 348 }
347 349
348 with(http) { 350 with(http) {
351 pageTitle = "${projectInfo.project.name} - ${i18n("navmenu.components")}"
349 view = ComponentsView( 352 view = ComponentsView(
350 projectInfo, 353 projectInfo,
351 dao.listComponentSummaries(projectInfo.project) 354 dao.listComponentSummaries(projectInfo.project)
352 ) 355 )
353 feedPath = feedPath(projectInfo.project) 356 feedPath = feedPath(projectInfo.project)
434 } 437 }
435 438
436 val comments = dao.listComments(issue) 439 val comments = dao.listComments(issue)
437 440
438 with(http) { 441 with(http) {
442 pageTitle = "${projectInfo.project.name}: #${issue.id} ${issue.subject}"
439 view = IssueDetailView(issue, comments, project, version, component) 443 view = IssueDetailView(issue, comments, project, version, component)
440 // TODO: feed path for this particular issue 444 // TODO: feed path for this particular issue
441 feedPath = feedPath(projectInfo.project) 445 feedPath = feedPath(projectInfo.project)
442 navigationMenu = activeProjectNavMenu( 446 navigationMenu = activeProjectNavMenu(
443 dao.listProjects(), 447 dao.listProjects(),

mercurial