liquid_feedback_frontend

changeset 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 9e6a23f11f32
children 6c29e35cbdd3
files app/main/member/_notify_level_not_set.lua app/main/member/show_tab.lua
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/member/_notify_level_not_set.lua	Wed Feb 29 12:00:43 2012 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +ui.heading{ level = 2, content = _"Notification level not set yet" }
     1.5 +
     1.6 +slot.put("<br />")
     1.7 +
     1.8 +ui.tag{
     1.9 +  tag = "div",
    1.10 +  content = _"You didn't set the level of notifications you like to receive"
    1.11 +}
    1.12 +
    1.13 +slot.put("<br />")
    1.14 +
    1.15 +ui.link{
    1.16 +  text = _"Configure notifications now",
    1.17 +  module = "member",
    1.18 +  view = "settings_notification",
    1.19 +}
    1.20 +slot.put("<br />")
    1.21 +slot.put("<br />")
    1.22 +
     2.1 --- a/app/main/member/show_tab.lua	Wed Feb 29 11:51:39 2012 +0100
     2.2 +++ b/app/main/member/show_tab.lua	Wed Feb 29 12:00:43 2012 +0100
     2.3 @@ -24,19 +24,27 @@
     2.4        class = "yellow",
     2.5        name = "email_unconfirmed",
     2.6        label = _"Email unconfirmed",
     2.7 -      icon = { static = "icons/16/bell.png" },
     2.8        module = "member",
     2.9        view = "_email_unconfirmed",
    2.10        params = {}
    2.11      }
    2.12    end
    2.13  
    2.14 +  if app.session.member.notify_level == nil then
    2.15 +    tabs[#tabs+1] = {
    2.16 +      class = "yellow",
    2.17 +      name = "notify_level_not_set",
    2.18 +      label = _"Notifications",
    2.19 +      module = "member",
    2.20 +      view = "_notify_level_not_set"
    2.21 +    }
    2.22 +  end
    2.23 +  
    2.24    if config.motd_intern then
    2.25      tabs[#tabs+1] = {
    2.26        class = "yellow",
    2.27        name = "motd",
    2.28        label = _"Message of the day",
    2.29 -      icon = { static = "icons/16/bell.png" },
    2.30        module = "index",
    2.31        view = "_motd",
    2.32        params = {}

Impressum / About Us