~jan0sch/smederee

Showing details for patch 1c916e6552ae43e32e499f06257df4c72b31e893.
2024-06-28 (Fri), 11:30 AM - Jens Grassel - 1c916e6552ae43e32e499f06257df4c72b31e893

tickets: Change page title and include possible ticket search status.

Summary of changes
1 files modified with 7 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 7 added and 1 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala new-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala	2025-01-11 12:00:05.660453844 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala	2025-01-11 12:00:05.660453844 +0000
@@ -210,6 +210,12 @@
                                 )
                             )
                         )
+                        ticketStati = filter
+                            .map(_.status)
+                            .filter(_.nonEmpty)
+                            .map(stati => s" (${stati.mkString(", ")})")
+                            .getOrElse("")
+                        title = s"Smederee/~$projectOwnerName/$projectName - Tickets" |+| ticketStati
                         resp <- Ok(
                             views.html.showTickets(lang = language)(
                                 projectBaseUri.addSegment("tickets"),
@@ -218,7 +224,7 @@
                                 tickets,
                                 filter,
                                 projectBaseUri,
-                                "Manage your project tickets.".some,
+                                title.some,
                                 user,
                                 project
                             )