From c94db545579bfa58a8fbd2357fab3ef346c46e25 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 14 Mar 2017 13:45:58 +0300 Subject: juick-www: fix help --- juick-www/src/main/java/com/juick/www/controllers/Help.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'juick-www') diff --git a/juick-www/src/main/java/com/juick/www/controllers/Help.java b/juick-www/src/main/java/com/juick/www/controllers/Help.java index 58949827..361d5efc 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Help.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Help.java @@ -1,6 +1,7 @@ package com.juick.www.controllers; import com.juick.server.util.HttpNotFoundException; +import com.juick.service.MessagesService; import com.juick.www.HelpService; import com.juick.www.WebApp; import org.springframework.stereotype.Controller; @@ -25,6 +26,8 @@ public class Help { @Inject private HelpService helpService; @Inject + private MessagesService messagesService; + @Inject private WebApp webApp; @RequestMapping({"/help/", "/help", "/help/{langOrPage}", "/help/{lang}/{page}"}) @@ -68,6 +71,7 @@ public class Help { model.addAttribute("navigation", navigation); model.addAttribute("content", content); model.addAttribute("visitor", visitor); + model.addAttribute("readonly", messagesService.isReadonly()); return "views/help"; } -- cgit v1.2.3