X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=143f67ddec937132427c8564f340cd8c6de78bd9;hb=309334f7379f58c848225e1bf47676bc40bfe5b2;hp=cbd8b42bc418e8c0166e6bf3d7dd474f7c094ebf;hpb=2568fb2f90b630cae8aaf5163eebd11a02b5aedd;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index cbd8b42..143f67d 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -185,6 +185,9 @@ public class WebInterface extends AbstractService { Template viewPostTemplate = templateFactory.createTemplate(createReader("/templates/viewPost.html")); viewPostTemplate.set("formPassword", formPassword); + Template deletePostTemplate = templateFactory.createTemplate(createReader("/templates/deletePost.html")); + deletePostTemplate.set("formPassword", formPassword); + Template followSoneTemplate = templateFactory.createTemplate(createReader("/templates/followSone.html")); followSoneTemplate.set("formPassword", formPassword); @@ -205,6 +208,7 @@ public class WebInterface extends AbstractService { pageToadlets.add(pageToadletFactory.createPageToadlet(new CreateReplyPage(createReplyTemplate, this))); pageToadlets.add(pageToadletFactory.createPageToadlet(new ViewSonePage(viewSoneTemplate, this))); pageToadlets.add(pageToadletFactory.createPageToadlet(new ViewPostPage(viewPostTemplate, this))); + pageToadlets.add(pageToadletFactory.createPageToadlet(new DeletePostPage(deletePostTemplate, this))); pageToadlets.add(pageToadletFactory.createPageToadlet(new FollowSonePage(followSoneTemplate, this))); pageToadlets.add(pageToadletFactory.createPageToadlet(new DeleteSonePage(deleteSoneTemplate, this), "DeleteSone")); pageToadlets.add(pageToadletFactory.createPageToadlet(new LoginPage(loginTemplate, this), "Login"));