liquid_feedback_frontend

annotate app/main/member/settings.lua @ 586:95f214d91956

Fixed member drop down menu
author bsw
date Wed Jun 20 22:21:29 2012 +0200 (2012-06-20)
parents 418b590fa9ed
children 2d2cd7c79372
rev   line source
bsw@564 1 ui.title(_"Settings")
bsw@9 2
bsw@286 3 local pages = {}
bsw@286 4
bsw@286 5 if not config.locked_profile_fields.name then
bsw@286 6 pages[#pages+1] = { view = "settings_name", text = _"Change your screen name" }
bsw@286 7 end
bsw@286 8 if not config.locked_profile_fields.login then
bsw@286 9 pages[#pages+1] = { view = "settings_login", text = _"Change your login" }
bsw@286 10 end
bsw@286 11 pages[#pages+1] = { view = "settings_password", text = _"Change your password" }
bsw@414 12 if not config.locked_profile_fields.notify_email then
bsw@414 13 pages[#pages+1] = { view = "settings_email", text = _"Change your notification email address" }
bsw@414 14 end
bsw@414 15 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
bsw@414 16 pages[#pages+1] = { view = "settings_display", text = _"Display settings" }
bsw@286 17 pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" }
bsw/jbe@19 18
bsw@486 19 if config.download_dir then
bsw@486 20 pages[#pages+1] = { module = "index", view = "download", text = _"Database download" }
bsw@486 21 end
bsw@486 22
bsw@75 23 ui.list{
bsw@75 24 attr = { class = "menu_list" },
bsw@75 25 style = "ulli",
bsw@75 26 records = pages,
bsw@75 27 columns = {
bsw@75 28 {
bsw@75 29 content = function(page)
bsw@75 30 ui.link{
bsw@273 31 module = page.module or "member",
bsw@75 32 view = page.view,
bsw@75 33 text = page.text
bsw@75 34 }
bsw@75 35 end
bsw@9 36 }
bsw@75 37 }
bsw@9 38 }
bsw@9 39

Impressum / About Us