X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FEditImagePage.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FEditImagePage.kt;h=50578a3aa8809d84ce79f5dae5f6e8b92f104b22;hp=350dec75c0c280cd84f909f3edc7d359f196c781;hb=bf27ccc6a79aa58b6e3ea36568b1c5de11876cc3;hpb=7d023c8123bae2f0ba02b4ad8f43930e96ad30a6 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt index 350dec7..50578a3 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt @@ -8,11 +8,12 @@ import net.pterodactylus.sone.web.WebInterface import net.pterodactylus.sone.web.page.FreenetRequest import net.pterodactylus.util.template.Template import net.pterodactylus.util.template.TemplateContext +import javax.inject.Inject /** * Page that lets the user edit title and description of an {@link Image}. */ -class EditImagePage(template: Template, webInterface: WebInterface): +class EditImagePage @Inject constructor(template: Template, webInterface: WebInterface): LoggedInPage("editImage.html", template, "Page.EditImage.Title", webInterface) { override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {