/*
- * 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
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;
/**
* 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;
}
// TEMPLATEPAGE METHODS
//
- /**
- * {@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);
}
}