✨ Use new template renderer
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / KnownSonesPage.kt
index 59b79e7..0e890cc 100644 (file)
@@ -1,6 +1,7 @@
 package net.pterodactylus.sone.web.pages
 
 import net.pterodactylus.sone.data.Sone
+import net.pterodactylus.sone.main.*
 import net.pterodactylus.sone.utils.paginate
 import net.pterodactylus.sone.utils.parameters
 import net.pterodactylus.sone.web.WebInterface
@@ -12,8 +13,9 @@ import javax.inject.Inject
 /**
  * This page shows all known Sones.
  */
-class KnownSonesPage @Inject constructor(template: Template, webInterface: WebInterface):
-               SoneTemplatePage("knownSones.html", webInterface, template, "Page.KnownSones.Title") {
+@MenuName("KnownSones")
+class KnownSonesPage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer):
+               SoneTemplatePage("knownSones.html", webInterface, loaders, template, templateRenderer, pageTitleKey = "Page.KnownSones.Title") {
 
        override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) {
                getCurrentSone(soneRequest.toadletContext).let { currentSone ->