projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Process Sone templates in their own method
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
AboutPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/AboutPage.java
b/src/main/java/net/pterodactylus/sone/web/AboutPage.java
index
74c6a03
..
b69ac28
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/AboutPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/AboutPage.java
@@
-31,18
+31,20
@@
public class AboutPage extends SoneTemplatePage {
private final Version version;
private final int year;
private final Version version;
private final int year;
+ private final String homepage;
- public AboutPage(Template template, WebInterface webInterface, Version version, int year) {
+ public AboutPage(Template template, WebInterface webInterface, Version version, int year
, String homepage
) {
super("about.html", template, "Page.About.Title", webInterface, false);
this.version = version;
this.year = year;
super("about.html", template, "Page.About.Title", webInterface, false);
this.version = version;
this.year = year;
+ this.homepage = homepage;
}
@Override
}
@Override
- protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
- super.processTemplate(request, templateContext);
+ protected void processSonePage(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
templateContext.set("version", version);
templateContext.set("year", year);
templateContext.set("version", version);
templateContext.set("year", year);
+ templateContext.set("homepage", homepage);
}
}
}
}