liquid_feedback_frontend

view app/main/member/_menu.lua @ 586:95f214d91956

Fixed member drop down menu
author bsw
date Wed Jun 20 22:21:29 2012 +0200 (2012-06-20)
parents a06634d17718
children
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 for i, lang in ipairs(config.available_languages) do
75 ui.tag{ tag = "li", content = function()
76 ui.link{
77 content = _('Select language "#{langcode}"', { langcode = lang }),
78 module = "index",
79 action = "set_lang",
80 params = { lang = lang },
81 routing = {
82 default = {
83 mode = "redirect",
84 module = request.get_module(),
85 view = request.get_view(),
86 id = param.get_id_cgi(),
87 params = param.get_all_cgi()
88 }
89 }
90 }
91 end }
92 end
94 end }

Impressum / About Us