Updates to hw status
This commit is contained in:
parent
e38355aa56
commit
4b7973de5f
3 changed files with 102 additions and 38 deletions
|
|
@ -50,11 +50,14 @@ public class StatusPage extends AbstractPage{
|
|||
Map<String, Object> session,
|
||||
Map<String, String> cookie,
|
||||
Map<String, String> request) {
|
||||
if(request.containsKey("i")) {
|
||||
WAStatus obj = getPlugin(Integer.parseInt(request.get("i")));
|
||||
if(obj != null)
|
||||
return new Templator(obj.html());
|
||||
}
|
||||
WAStatus obj = null;
|
||||
if(request.containsKey("i"))
|
||||
obj = getPlugin(Integer.parseInt(request.get("i")));
|
||||
else
|
||||
obj = getPlugin(0);
|
||||
|
||||
if(obj != null)
|
||||
return new Templator(obj.html());
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue