annotate app/main/member/settings.lua @ 509:d97be0729c53
Fixed order of initiatives in event listing
author |
bsw |
date |
Sun Mar 25 23:23:20 2012 +0200 (2012-03-25) |
parents |
528409b5d49f |
children |
418b590fa9ed |
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 if not config.locked_profile_fields.name then
|
bsw@286
|
17 pages[#pages+1] = { view = "settings_name", text = _"Change your screen name" }
|
bsw@286
|
18 end
|
bsw@286
|
19 if not config.locked_profile_fields.login then
|
bsw@286
|
20 pages[#pages+1] = { view = "settings_login", text = _"Change your login" }
|
bsw@286
|
21 end
|
bsw@286
|
22 pages[#pages+1] = { view = "settings_password", text = _"Change your password" }
|
bsw@414
|
23 if not config.locked_profile_fields.notify_email then
|
bsw@414
|
24 pages[#pages+1] = { view = "settings_email", text = _"Change your notification email address" }
|
bsw@414
|
25 end
|
bsw@414
|
26 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
|
bsw@414
|
27 pages[#pages+1] = { view = "settings_display", text = _"Display settings" }
|
bsw@286
|
28 pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" }
|
bsw/jbe@19
|
29
|
bsw@486
|
30 if config.download_dir then
|
bsw@486
|
31 pages[#pages+1] = { module = "index", view = "download", text = _"Database download" }
|
bsw@486
|
32 end
|
bsw@486
|
33
|
bsw@75
|
34 ui.list{
|
bsw@75
|
35 attr = { class = "menu_list" },
|
bsw@75
|
36 style = "ulli",
|
bsw@75
|
37 records = pages,
|
bsw@75
|
38 columns = {
|
bsw@75
|
39 {
|
bsw@75
|
40 content = function(page)
|
bsw@75
|
41 ui.link{
|
bsw@273
|
42 module = page.module or "member",
|
bsw@75
|
43 view = page.view,
|
bsw@75
|
44 text = page.text
|
bsw@75
|
45 }
|
bsw@75
|
46 end
|
bsw@9
|
47 }
|
bsw@75
|
48 }
|
bsw@9
|
49 }
|
bsw@9
|
50
|