This commit is contained in:
Ziver Koc 2015-06-03 15:19:58 +00:00
parent ab7296198a
commit b5c3c18e28
3 changed files with 2 additions and 3 deletions

View file

@ -109,7 +109,7 @@ public class WAAbstractPage implements HttpPage{
if(page != null)
content = page.htmlResponse(context, client_info, session, cookie, request);
if(content != null) {
tmpl.set("nav", context.getBreadcrumb().get(1));
content.set("nav", context.getBreadcrumb().get(1));
tmpl.set("content", content.compile());
}

View file

@ -56,7 +56,7 @@ public class ServicePage implements WAPage {
WANavigation nav = new WANavigation(NAVIGATION_NAME, this);
for(WAService plugin : services) {
nav.addSubNav(new WANavigation(plugin.getName()));
nav.addSubNav(new WANavigation(plugin.getName(), plugin));
statuses.add(new ServiceStatusPage(plugin.getStatus()));
}
WANavigation.addRootNav(nav);

View file

@ -59,7 +59,6 @@ public class StatusPage implements WAPage {
Map<String, String> request) {
WAStatus obj = getPlugin(context);
if(obj != null) {
return new Templator(obj.html());
}