* @param template
*/
public AddTargetPage(Template template, WebInterface webInterface) {
- super(webInterface, "addTarget.html", template);
+ super(webInterface, "addTarget.html", null, template);
}
/**
protected final IdentityManager identityManager;
- 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();
+ this.title = title;
}
//
* {@inheritDoc}
*/
@Override
+ protected String getPageTitle(FreenetRequest request) {
+ return title;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
protected Collection<String> getStyleSheets() {
return Arrays.asList("css/main.css");
}
* @param template
*/
public EditTargetPage(Template template, WebInterface webInterface) {
- super(webInterface, "editTarget.html", template);
+ super(webInterface, "editTarget.html", null, template);
}
/**
* @param template
*/
public EnableIdentityPage(Template template, WebInterface webInterface) {
- super(webInterface, "enableIdentity.html", template);
+ super(webInterface, "enableIdentity.html", null, template);
}
/**
* @param template
*/
public IndexPage(Template template, WebInterface webInterface) {
- super(webInterface, "index.html", template);
+ super(webInterface, "index.html", "Web of Trust Name Service", template);
}
//
* @param template
*/
public ManagePage(Template template, WebInterface webInterface) {
- super(webInterface, "manage.html", template);
+ super(webInterface, "manage.html", "Manage - Web of Trust Name Service", template);
}
/**
private final Resolver resolver;
public ResolverPage(Template unknownNameTemplate, WebInterface webInterface, Resolver resolver) {
- super(webInterface, "", unknownNameTemplate);
+ super(webInterface, "", "Error - Web of Trust Name Service", unknownNameTemplate);
this.resolver = resolver;
}