liquid_feedback_frontend
view app/main/member/settings.lua @ 127:4fb486bce608
add pageinator to issue view.
this "paginator" shows links to the prev/area/next issues that have the same
state then the current one. This helps a lot when inspecting new issues or voting.
The voting filter works a little bit different, as he also activtes the not_voted subfilter
because it is most likely only not voted issues are interessting to the user
this "paginator" shows links to the prev/area/next issues that have the same
state then the current one. This helps a lot when inspecting new issues or voting.
The voting filter works a little bit different, as he also activtes the not_voted subfilter
because it is most likely only not voted issues are interessting to the user
| author | Daniel Poelzleithner <poelzi@poelzi.org> | 
|---|---|
| date | Tue Oct 05 04:44:06 2010 +0200 (2010-10-05) | 
| 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 }
