From 925420734e4e28ce2b463bd2d7426c2a5b7c5cd7 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 8 Feb 2015 23:51:21 +0900 Subject: [PATCH] Render Html with layout template --- src/main/scala/servlet/PluginActionFilter.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/scala/servlet/PluginActionFilter.scala b/src/main/scala/servlet/PluginActionFilter.scala index d5b72c75c..1480193ea 100644 --- a/src/main/scala/servlet/PluginActionFilter.scala +++ b/src/main/scala/servlet/PluginActionFilter.scala @@ -25,7 +25,7 @@ class PluginActionFilter extends Filter with SystemSettingsService { 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 @@ class PluginActionFilter extends Filter with SystemSettingsService { 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 {