liquid_feedback_frontend
view app/main/member/settings.lua @ 490:abebe5e9ff78
Do not show ignore initiative for closed issues closes #1179
| author | bsw | 
|---|---|
| date | Thu Mar 15 20:56:13 2012 +0100 (2012-03-15) | 
| parents | 528409b5d49f | 
| children | 418b590fa9ed | 
 line source
     1 slot.put_into("title", _"Settings")
     3 slot.select("actions", function()
     4   ui.link{
     5     content = function()
     6         ui.image{ static = "icons/16/cancel.png" }
     7         slot.put(_"Cancel")
     8     end,
     9     module = "index",
    10     view = "index"
    11   }
    12 end)
    14 local pages = {}
    16 if not config.locked_profile_fields.name then
    17   pages[#pages+1] = { view = "settings_name",           text = _"Change your screen name" }
    18 end
    19 if not config.locked_profile_fields.login then
    20   pages[#pages+1] = { view = "settings_login",          text = _"Change your login" }
    21 end
    22 pages[#pages+1] = { view = "settings_password",       text = _"Change your password" }
    23 if not config.locked_profile_fields.notify_email then
    24   pages[#pages+1] = { view = "settings_email",          text = _"Change your notification email address" }
    25 end
    26 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
    27 pages[#pages+1] = { view = "settings_display",        text = _"Display settings" }
    28 pages[#pages+1] = { view = "developer_settings",      text = _"Developer settings" }
    30 if config.download_dir then
    31   pages[#pages+1] = { module = "index", view = "download",      text = _"Database download" }
    32 end
    34 ui.list{
    35   attr = { class = "menu_list" },
    36   style = "ulli",
    37   records = pages,
    38   columns = {
    39     {
    40       content = function(page)
    41         ui.link{
    42           module = page.module or "member",
    43           view = page.view,
    44           text = page.text
    45         }
    46       end
    47     }
    48   }
    49 }
