liquid_feedback_frontend
view app/main/member/_menu.lua @ 540:ec7b6beb5be6
Merged translation file updates from v2.beta5
| author | bsw | 
|---|---|
| date | Thu May 24 00:16:19 2012 +0200 (2012-05-24) | 
| parents | 63d6549cc00b | 
| children | a06634d17718 | 
 line source
     1 ui.tag{ tag = "ul", content = function()
     3   ui.tag{ tag = "li", content = function()
     5     ui.link{
     6       text = _"Show profile",
     7       module = "member",
     8       view = "show",
     9       id = app.session.member_id
    10     }
    12   end }
    14   ui.tag{ tag = "li", content = function()
    16     ui.link{
    17       content = function()
    18           slot.put(_"Edit profile")
    19       end,
    20       module = "member",
    21       view = "edit"
    22     }
    24   end }
    26   ui.tag{ tag = "li", content = function()
    28     ui.link{
    29       content = function()
    30           slot.put(_"Upload avatar/photo")
    31       end,
    32       module = "member",
    33       view = "edit_images"
    34     }
    36   end }
    38   ui.tag{ tag = "li", content = function()
    40     ui.link{
    41       content = _"Contacts",
    42       module = 'contact',
    43       view   = 'list'
    44     }
    46   end }
    48   ui.tag{ tag = "li", content = function()
    50     ui.link{
    51       text   = _"Settings",
    52       module = "member",
    53       view = "settings"
    54     }
    56   end }
    58   ui.tag{ tag = "li", content = function()
    60     ui.link{
    61       text   = _"Logout",
    62       module = 'index',
    63       action = 'logout',
    64       routing = {
    65         default = {
    66           mode = "redirect",
    67           module = "index",
    68           view = "index"
    69         }
    70       }
    71     }
    72   end }
    74   ui.tag{ tag = "li", content = function()
    75     ui.tag{ tag = "span", content = _"Select language" }
    76   end }
    78   for i, lang in ipairs{"en", "de", "eo"} do
    79     ui.tag{ tag = "li", content = function()
    80       ui.link{
    81         content = function()
    82           ui.image{
    83             static = "lang/" .. lang .. ".png",
    84           }
    85           ui.tag{ content = _('Select language "#{langcode}"', { langcode = lang }) }
    86         end,
    87         module = "index",
    88         action = "set_lang",
    89         params = { lang = lang },
    90         routing = {
    91           default = {
    92             mode = "redirect",
    93             module = request.get_module(),
    94             view = request.get_view(),
    95             id = param.get_id_cgi(),
    96             params = param.get_all_cgi()
    97           }
    98         }
    99       }
   100     end }
   101   end
   103 end }
