liquid_feedback_frontend

annotate app/main/member/settings.lua @ 745:5206168cf570

Removed unneccessary link (the right one)
author bsw
date Thu Jun 28 22:28:11 2012 +0200 (2012-06-28)
parents 2d2cd7c79372
children
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@286 16 pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" }
bsw/jbe@19 17
bsw@486 18 if config.download_dir then
bsw@486 19 pages[#pages+1] = { module = "index", view = "download", text = _"Database download" }
bsw@486 20 end
bsw@486 21
bsw@75 22 ui.list{
bsw@75 23 attr = { class = "menu_list" },
bsw@75 24 style = "ulli",
bsw@75 25 records = pages,
bsw@75 26 columns = {
bsw@75 27 {
bsw@75 28 content = function(page)
bsw@75 29 ui.link{
bsw@273 30 module = page.module or "member",
bsw@75 31 view = page.view,
bsw@75 32 text = page.text
bsw@75 33 }
bsw@75 34 end
bsw@9 35 }
bsw@75 36 }
bsw@9 37 }
bsw@9 38

Impressum / About Us