X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FKnownSonesPage.kt;h=65f48536565fd1b91c511215aded3f47a8d89f73;hp=dd9683298efdbc056ba4e4670eed0cf2106cea51;hb=6a3f1fede0cda5cd6ed56204aa1dd37a19813cb9;hpb=6b0fc27624fc311424452decc28da50a81f4ae2a diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt index dd96832..65f4853 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt @@ -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 @@ -13,8 +14,8 @@ import javax.inject.Inject * This page shows all known Sones. */ @MenuName("KnownSones") -class KnownSonesPage @Inject constructor(template: Template, webInterface: WebInterface): - SoneTemplatePage("knownSones.html", webInterface, template, "Page.KnownSones.Title") { +class KnownSonesPage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders): + SoneTemplatePage("knownSones.html", webInterface, loaders, template = template, pageTitleKey = "Page.KnownSones.Title") { override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) { getCurrentSone(soneRequest.toadletContext).let { currentSone ->