X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FEditProfileFieldPage.kt;h=cf23d47e31b14a73c49a670f51d56414a214f7cd;hb=bce70170ce5ddaa142e67fcc67985215e1eadac2;hp=580ee726fc3d808e625d49248dab41acd7a34262;hpb=6a3f1fede0cda5cd6ed56204aa1dd37a19813cb9;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPage.kt index 580ee72..cf23d47 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPage.kt @@ -12,8 +12,9 @@ import javax.inject.Inject /** * Page that lets the user edit the name of a profile field. */ -class EditProfileFieldPage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders) : - LoggedInPage("editProfileField.html", template, "Page.EditProfileField.Title", webInterface, loaders) { +@TemplatePath("/templates/editProfileField.html") +class EditProfileFieldPage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) : + LoggedInPage("editProfileField.html", template, "Page.EditProfileField.Title", webInterface, loaders, templateRenderer) { override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) { currentSone.profile.let { profile ->