X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FAboutPage.java;h=6a6bc63938e16baeb585c17f7e053376ce32d712;hb=f4d3720ef1fab42a063b70eff6ddc6c145e5122b;hp=f49ff311730a11684010fa4e12f42e189b71ec9a;hpb=12dcccc5668bf645f88886d3a8ef25497622043d;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/AboutPage.java b/src/main/java/net/pterodactylus/sone/web/AboutPage.java index f49ff31..6a6bc63 100644 --- a/src/main/java/net/pterodactylus/sone/web/AboutPage.java +++ b/src/main/java/net/pterodactylus/sone/web/AboutPage.java @@ -1,5 +1,5 @@ /* - * Sone - AboutPage.java - Copyright © 2010 David Roden + * Sone - AboutPage.java - Copyright © 2010–2013 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,9 @@ package net.pterodactylus.sone.web; +import net.pterodactylus.sone.web.page.FreenetRequest; import net.pterodactylus.util.template.Template; +import net.pterodactylus.util.template.TemplateContext; import net.pterodactylus.util.version.Version; /** @@ -41,7 +43,7 @@ public class AboutPage extends SoneTemplatePage { * The version to display */ public AboutPage(Template template, WebInterface webInterface, Version version) { - super("about.html", template, "Page.About.Title", webInterface); + super("about.html", template, "Page.About.Title", webInterface, false); this.version = version; } @@ -53,21 +55,9 @@ public class AboutPage extends SoneTemplatePage { * {@inheritDoc} */ @Override - protected void processTemplate(Request request, Template template) throws RedirectException { - super.processTemplate(request, template); - template.set("version", version); - } - - // - // SONETEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ - @Override - protected boolean requiresLogin() { - return false; + protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException { + super.processTemplate(request, templateContext); + templateContext.set("version", version); } }