# HG changeset patch # User bsw # Date 1426944282 -3600 # Node ID b1b357fdb9df8d0948e8809be0499dbe08254ee0 # Parent f21f40dd933428087989018f8de0c61ca9813e48 Removed not used files diff -r f21f40dd9334 -r b1b357fdb9df app/main/index/_menu.lua --- a/app/main/index/_menu.lua Sat Mar 21 14:21:34 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,106 +0,0 @@ -ui.tag{ tag = "ul", content = function() - - if app.session.member_id and not app.session.needs_delegation_check then - ui.tag{ tag = "li", content = function() - - ui.link{ - text = _"Show profile", - module = "member", - view = "show", - id = app.session.member_id - } - - end } - - ui.tag{ tag = "li", content = function() - - ui.link{ - content = function() - slot.put(_"Edit profile") - end, - module = "member", - view = "edit" - } - - end } - - ui.tag{ tag = "li", content = function() - - ui.link{ - content = function() - slot.put(_"Upload avatar/photo") - end, - module = "member", - view = "edit_images" - } - - end } - - ui.tag{ tag = "li", content = function() - - ui.link{ - content = _"Contacts", - module = 'contact', - view = 'list' - } - - end } - - ui.tag{ tag = "li", content = function() - - ui.link{ - text = _"Settings", - module = "member", - view = "settings" - } - - end } - end - - if app.session.member_id then - ui.tag{ tag = "li", content = function() - - ui.link{ - text = _"Logout", - module = 'index', - action = 'logout', - routing = { - default = { - mode = "redirect", - module = "index", - view = "index" - } - } - } - end } - end - - for i, lang in ipairs(config.enabled_languages) do - - local langcode - - locale.do_with({ lang = lang }, function() - langcode = _("[Name of Language]") - end) - - ui.tag{ tag = "li", content = function() - ui.link{ - content = _('Select language "#{langcode}"', { langcode = langcode }), - module = "index", - action = "set_lang", - params = { lang = lang }, - routing = { - default = { - mode = "redirect", - module = request.get_module(), - view = request.get_view(), - id = param.get_id_cgi(), - params = param.get_all_cgi() - } - } - } - end } - end - -end } - diff -r f21f40dd9334 -r b1b357fdb9df app/main/index/menu.lua --- a/app/main/index/menu.lua Sat Mar 21 14:21:34 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -app.html_title.title = _("Member menu") - -execute.view{ - module = "index", - view = "_menu" -} -