liquid_feedback_frontend

annotate app/main/member/settings.lua @ 347:790ff702402f

Removed superfluous text on settings page
author bsw
date Tue Feb 28 22:50:48 2012 +0100 (2012-02-28)
parents c587d8762e62
children 699b9fa7bc36
rev   line source
bsw@9 1 slot.put_into("title", _"Settings")
bsw@9 2
bsw@9 3 slot.select("actions", function()
bsw@9 4 ui.link{
bsw@9 5 content = function()
bsw@9 6 ui.image{ static = "icons/16/cancel.png" }
bsw@9 7 slot.put(_"Cancel")
bsw@9 8 end,
bsw@9 9 module = "index",
bsw@9 10 view = "index"
bsw@9 11 }
bsw@9 12 end)
bsw@9 13
bsw@286 14 local pages = {}
bsw@286 15
bsw@286 16 pages[#pages+1] = { module = "member", view = "edit", text = _"Edit profile" }
bsw@286 17 pages[#pages+1] = { module = "member", view = "edit_images", text = _"Upload images" }
bsw@286 18 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
bsw@286 19 pages[#pages+1] = { view = "settings_display", text = _"Display settings" }
bsw@286 20 if not config.locked_profile_fields.notify_email then
bsw@286 21 pages[#pages+1] = { view = "settings_email", text = _"Change your notification email address" }
bsw@286 22 end
bsw@286 23 if not config.locked_profile_fields.name then
bsw@286 24 pages[#pages+1] = { view = "settings_name", text = _"Change your screen name" }
bsw@286 25 end
bsw@286 26 if not config.locked_profile_fields.login then
bsw@286 27 pages[#pages+1] = { view = "settings_login", text = _"Change your login" }
bsw@286 28 end
bsw@286 29 pages[#pages+1] = { view = "settings_password", text = _"Change your password" }
bsw@286 30 pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" }
bsw/jbe@19 31
bsw@75 32 ui.list{
bsw@75 33 attr = { class = "menu_list" },
bsw@75 34 style = "ulli",
bsw@75 35 records = pages,
bsw@75 36 columns = {
bsw@75 37 {
bsw@75 38 content = function(page)
bsw@75 39 ui.link{
bsw@273 40 module = page.module or "member",
bsw@75 41 view = page.view,
bsw@75 42 text = page.text
bsw@75 43 }
bsw@75 44 end
bsw@9 45 }
bsw@75 46 }
bsw@9 47 }
bsw@9 48

Impressum / About Us