diff options
author | Vitaly Takmazov | 2017-03-14 13:45:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-03-14 13:45:58 +0300 |
commit | c94db545579bfa58a8fbd2357fab3ef346c46e25 (patch) | |
tree | f9e4189d594bb631cbc65e48e4d055bb9d040b50 /juick-www/src/main/java/com | |
parent | 89f42d8103a4382a7d9bacbb8db57c65cdd57f8c (diff) |
juick-www: fix help
Diffstat (limited to 'juick-www/src/main/java/com')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/Help.java | 4 |
1 files changed, 4 insertions, 0 deletions
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"; } |