liquid_feedback_frontend
view app/main/member/settings.lua @ 81:134fce4bede3
Cache for rendered wiki texts; Accountless API keys; Reverse id order for initiative API
- Support for caching html version of drafts
- Using pre-rendered html versions of help messages
- Added Support for api keys not connected to an account
- Added order option "id_desc" to initiative API
- Support for caching html version of drafts
- Using pre-rendered html versions of help messages
- Added Support for api keys not connected to an account
- Added order option "id_desc" to initiative API
| author | bsw | 
|---|---|
| date | Sat Jul 24 17:22:05 2010 +0200 (2010-07-24) | 
| parents | 733f65c0c0a0 | 
| children | 7196685f9dd7 | 
 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 ui.tag{
    15   tag = "div",
    16   content = _"You can change the following settings:"
    17 }
    19 local pages = {
    20   { view = "settings_display",   text = _"Display settings" },
    21   { view = "settings_email",     text = _"Change your notification email address" },
    22   { view = "settings_name",      text = _"Change your name" },
    23   { view = "settings_login",     text = _"Change your login" },
    24   { view = "settings_password",  text = _"Change your password" },
    25   { view = "developer_settings", text = _"Developer settings" },
    26 }
    28 ui.list{
    29   attr = { class = "menu_list" },
    30   style = "ulli",
    31   records = pages,
    32   columns = {
    33     {
    34       content = function(page)
    35         ui.link{
    36           module = "member",
    37           view = page.view,
    38           text = page.text
    39         }
    40       end
    41     }
    42   }
    43 }
