liquid_feedback_frontend

diff app/main/unit/show.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 699b9fa7bc36
children 18cd8595459b
line diff
     1.1 --- a/app/main/unit/show.lua	Tue Apr 17 00:07:04 2012 +0200
     1.2 +++ b/app/main/unit/show.lua	Fri May 18 19:07:07 2012 +0200
     1.3 @@ -2,11 +2,7 @@
     1.4  
     1.5  local unit = Unit:by_id(unit_id)
     1.6  
     1.7 -if not config.single_unit_id then
     1.8 -  slot.put_into("title", unit.name)
     1.9 -else
    1.10 -  slot.put_into("title", encode.html(config.app_title))
    1.11 -end
    1.12 +execute.view{ module = "unit", view = "_head", params = { unit = unit } }
    1.13  
    1.14  if config.single_unit_id and not app.session.member_id and config.motd_public then
    1.15    local help_text = config.motd_public
    1.16 @@ -20,15 +16,6 @@
    1.17  
    1.18  util.help("unit.show", _"Unit")
    1.19  
    1.20 -if app.session.member_id then
    1.21 -  execute.view{
    1.22 -    module = "delegation",
    1.23 -    view = "_show_box",
    1.24 -    params = { unit_id = unit_id }
    1.25 -  }
    1.26 -end
    1.27 -
    1.28 -
    1.29  local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
    1.30  areas_selector:add_order_by("member_weight DESC")
    1.31  
    1.32 @@ -101,8 +88,8 @@
    1.33  
    1.34  if app.session.member_id then
    1.35    tabs[#tabs+1] = {
    1.36 -    name = "members",
    1.37 -    label = _"Members",
    1.38 +    name = "eligible_voters",
    1.39 +    label = _"Eligible voters",
    1.40      module = "member",
    1.41      view = "_list",
    1.42      params = { members_selector = members_selector }

Impressum / About Us