# HG changeset patch # User bsw # Date 1330513243 -3600 # Node ID bd6a8bb9f35c8ea7eac3a2cb79a6ebf2f5e01a6f # Parent 9e6a23f11f32f07a69758dd0541f58a9bf7c1d59 Show warning at homepage if notify_level is not set by member diff -r 9e6a23f11f32 -r bd6a8bb9f35c app/main/member/_notify_level_not_set.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main/member/_notify_level_not_set.lua Wed Feb 29 12:00:43 2012 +0100 @@ -0,0 +1,19 @@ +ui.heading{ level = 2, content = _"Notification level not set yet" } + +slot.put("
") + +ui.tag{ + tag = "div", + content = _"You didn't set the level of notifications you like to receive" +} + +slot.put("
") + +ui.link{ + text = _"Configure notifications now", + module = "member", + view = "settings_notification", +} +slot.put("
") +slot.put("
") + diff -r 9e6a23f11f32 -r bd6a8bb9f35c app/main/member/show_tab.lua --- a/app/main/member/show_tab.lua Wed Feb 29 11:51:39 2012 +0100 +++ b/app/main/member/show_tab.lua Wed Feb 29 12:00:43 2012 +0100 @@ -24,19 +24,27 @@ class = "yellow", name = "email_unconfirmed", label = _"Email unconfirmed", - icon = { static = "icons/16/bell.png" }, module = "member", view = "_email_unconfirmed", params = {} } end + if app.session.member.notify_level == nil then + tabs[#tabs+1] = { + class = "yellow", + name = "notify_level_not_set", + label = _"Notifications", + module = "member", + view = "_notify_level_not_set" + } + end + if config.motd_intern then tabs[#tabs+1] = { class = "yellow", name = "motd", label = _"Message of the day", - icon = { static = "icons/16/bell.png" }, module = "index", view = "_motd", params = {}