liquid_feedback_frontend
diff app/main/member/show_tab.lua @ 349:bd6a8bb9f35c
Show warning at homepage if notify_level is not set by member
| author | bsw |
|---|---|
| date | Wed Feb 29 12:00:43 2012 +0100 (2012-02-29) |
| parents | 44f9a09ea51c |
| children | 699b9fa7bc36 |
line diff
1.1 --- a/app/main/member/show_tab.lua Wed Feb 29 11:51:39 2012 +0100 1.2 +++ b/app/main/member/show_tab.lua Wed Feb 29 12:00:43 2012 +0100 1.3 @@ -24,19 +24,27 @@ 1.4 class = "yellow", 1.5 name = "email_unconfirmed", 1.6 label = _"Email unconfirmed", 1.7 - icon = { static = "icons/16/bell.png" }, 1.8 module = "member", 1.9 view = "_email_unconfirmed", 1.10 params = {} 1.11 } 1.12 end 1.13 1.14 + if app.session.member.notify_level == nil then 1.15 + tabs[#tabs+1] = { 1.16 + class = "yellow", 1.17 + name = "notify_level_not_set", 1.18 + label = _"Notifications", 1.19 + module = "member", 1.20 + view = "_notify_level_not_set" 1.21 + } 1.22 + end 1.23 + 1.24 if config.motd_intern then 1.25 tabs[#tabs+1] = { 1.26 class = "yellow", 1.27 name = "motd", 1.28 label = _"Message of the day", 1.29 - icon = { static = "icons/16/bell.png" }, 1.30 module = "index", 1.31 view = "_motd", 1.32 params = {}