diff --git a/src/main/scala/servlet/PluginActionFilter.scala b/src/main/scala/servlet/PluginActionFilter.scala index d5b72c7..1480193 100644 --- a/src/main/scala/servlet/PluginActionFilter.scala +++ b/src/main/scala/servlet/PluginActionFilter.scala @@ -25,7 +25,7 @@ registry.getGlobalAction(method, path).map { action => // Create Context val loginAccount = req.getSession.getAttribute(Keys.Session.LoginAccount).asInstanceOf[Account] - val context = Context(loadSystemSettings(), Option(loginAccount), req) + implicit val context = Context(loadSystemSettings(), Option(loginAccount), req) // Invoke global action action(req, res, context) match { @@ -36,7 +36,8 @@ res.getWriter.flush() case x: Html => res.setContentType("text/html; charset=UTF-8") - res.getWriter.write(x.body) + // TODO title of plugin action + res.getWriter.write(html.main("TODO")(x).body) res.getWriter.flush() } }.getOrElse {