X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FAboutPage.java;h=74c6a039c5d4a5057b33ba98e2247ffc275960dc;hp=6a6bc63938e16baeb585c17f7e053376ce32d712;hb=69bde20c9d91feada988690d3a5a59bc3e086fce;hpb=48333ba0f07fe742c7b1544231eaec3e1f4e9851 diff --git a/src/main/java/net/pterodactylus/sone/web/AboutPage.java b/src/main/java/net/pterodactylus/sone/web/AboutPage.java index 6a6bc63..74c6a03 100644 --- a/src/main/java/net/pterodactylus/sone/web/AboutPage.java +++ b/src/main/java/net/pterodactylus/sone/web/AboutPage.java @@ -29,35 +29,20 @@ import net.pterodactylus.util.version.Version; */ public class AboutPage extends SoneTemplatePage { - /** The version to display. */ private final Version version; + private final int year; - /** - * Creates a new “about” page. - * - * @param template - * The template to render - * @param webInterface - * The Sone web interface - * @param version - * The version to display - */ - public AboutPage(Template template, WebInterface webInterface, Version version) { + public AboutPage(Template template, WebInterface webInterface, Version version, int year) { super("about.html", template, "Page.About.Title", webInterface, false); this.version = version; + this.year = year; } - // - // TEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ @Override protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException { super.processTemplate(request, templateContext); templateContext.set("version", version); + templateContext.set("year", year); } }