X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FCreateAlbumPage.kt;h=98c2143fab8d56bbb1a452af9fde04779c36e02a;hp=452d5a4404b696b32c4d50144dcb682e34f549b3;hb=bce70170ce5ddaa142e67fcc67985215e1eadac2;hpb=6a3f1fede0cda5cd6ed56204aa1dd37a19813cb9 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/CreateAlbumPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/CreateAlbumPage.kt index 452d5a4..98c2143 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/CreateAlbumPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/CreateAlbumPage.kt @@ -14,8 +14,9 @@ import javax.inject.Inject /** * Page that lets the user create a new album. */ -class CreateAlbumPage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders): - LoggedInPage("createAlbum.html", template, "Page.CreateAlbum.Title", webInterface, loaders) { +@TemplatePath("/templates/createAlbum.html") +class CreateAlbumPage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer): + LoggedInPage("createAlbum.html", template, "Page.CreateAlbum.Title", webInterface, loaders, templateRenderer) { override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) { if (soneRequest.isPOST) {