liquid_feedback_frontend

diff app/main/index/_lang_chooser.lua @ 525:63d6549cc00b

Delegation chain preview improved, better visualisation of current context, code cleanup
author bsw
date Fri May 18 19:07:07 2012 +0200 (2012-05-18)
parents 58647c8a0339
children 32cc544d5a5b
line diff
     1.1 --- a/app/main/index/_lang_chooser.lua	Tue Apr 17 00:07:04 2012 +0200
     1.2 +++ b/app/main/index/_lang_chooser.lua	Fri May 18 19:07:07 2012 +0200
     1.3 @@ -1,31 +0,0 @@
     1.4 -slot.select("title", function()
     1.5 -  ui.container{
     1.6 -    attr = { class = "lang_chooser" },
     1.7 -    content = function()
     1.8 -      for i, lang in ipairs{"en", "de", "eo"} do
     1.9 -        ui.link{
    1.10 -          content = function()
    1.11 -            ui.image{
    1.12 -              static = "lang/" .. lang .. ".png",
    1.13 -              attr = { style = "margin-left: 0.5em;", alt = lang, title = lang }
    1.14 -            }
    1.15 -          end,
    1.16 -          text = _('Select language "#{langcode}"', { langcode = lang }),
    1.17 -          module = "index",
    1.18 -          action = "set_lang",
    1.19 -          params = { lang = lang },
    1.20 -          routing = {
    1.21 -            default = {
    1.22 -              mode = "redirect",
    1.23 -              module = request.get_module(),
    1.24 -              view = request.get_view(),
    1.25 -              id = param.get_id_cgi(),
    1.26 -              params = param.get_all_cgi()
    1.27 -            }
    1.28 -          }
    1.29 -        }
    1.30 -      end
    1.31 -    end
    1.32 -  }
    1.33 -end)
    1.34 -

Impressum / About Us