Store the current year at time of release in the source code
[Sone.git] / src / main / java / net / pterodactylus / sone / web / AboutPage.java
index 6a6bc63..74c6a03 100644 (file)
@@ -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);
        }
 
 }