import net.pterodactylus.util.template.Template;
import net.pterodactylus.util.template.TemplateContext;
import net.pterodactylus.util.web.Method;
import net.pterodactylus.util.template.Template;
import net.pterodactylus.util.template.TemplateContext;
import net.pterodactylus.util.web.Method;
- public BasicPage(WebInterface webInterface, String path, Template template) {
+ private final String title;
+
+ public BasicPage(WebInterface webInterface, String path, String title, Template template) {
super(path, webInterface.getTemplateContextFactory(), template, "noPermission.html");
this.webInterface = webInterface;
this.identityManager = webInterface.getWoTNSPlugin().getIdentityManager();
super(path, webInterface.getTemplateContextFactory(), template, "noPermission.html");
this.webInterface = webInterface;
this.identityManager = webInterface.getWoTNSPlugin().getIdentityManager();
protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
templateContext.set("ownIdentities", identityManager.getAllOwnIdentities());
templateContext.set("formPassword", webInterface.getWoTNSPlugin().getToadletContainer().getFormPassword());
}
templateContext.set("ownIdentities", identityManager.getAllOwnIdentities());
templateContext.set("formPassword", webInterface.getWoTNSPlugin().getToadletContainer().getFormPassword());
}