liquid_feedback_frontend
diff app/main/area/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 | 22e4e26717ac |
children | 18cd8595459b |
line diff
1.1 --- a/app/main/area/show.lua Tue Apr 17 00:07:04 2012 +0200 1.2 +++ b/app/main/area/show.lua Fri May 18 19:07:07 2012 +0200 1.3 @@ -13,24 +13,7 @@ 1.4 end 1.5 1.6 1.7 -slot.select("title", function() 1.8 - ui.link{ 1.9 - content = area.name, 1.10 - module = "area", view = "show", id = area.id 1.11 - } 1.12 - 1.13 - if not config.single_unit_id then 1.14 - slot.put(" · ") 1.15 - ui.link{ 1.16 - content = area.unit.name, 1.17 - module = "unit", 1.18 - view = "show", 1.19 - id = area.unit_id 1.20 - } 1.21 - end 1.22 - 1.23 - 1.24 -end) 1.25 +execute.view{ module = "area", view = "_head", params = { area = area } } 1.26 1.27 ui.container{ 1.28 attr = { class = "vertical"}, 1.29 @@ -40,35 +23,7 @@ 1.30 } 1.31 1.32 1.33 -if app.session.member_id then 1.34 - execute.view{ 1.35 - module = "membership", 1.36 - view = "_show_box", 1.37 - params = { area = area } 1.38 - } 1.39 1.40 - execute.view{ 1.41 - module = "delegation", 1.42 - view = "_show_box", 1.43 - params = { area_id = area.id } 1.44 - } 1.45 - 1.46 - if app.session.member:has_voting_right_for_unit_id(area.unit_id) then 1.47 - slot.select("actions", function() 1.48 - ui.link{ 1.49 - content = function() 1.50 - ui.image{ static = "icons/16/folder_add.png" } 1.51 - slot.put(_"Create new issue") 1.52 - end, 1.53 - module = "initiative", 1.54 - view = "new", 1.55 - params = { area_id = area.id } 1.56 - } 1.57 - end) 1.58 - end 1.59 - 1.60 - 1.61 -end 1.62 1.63 if app.session.member then 1.64 execute.view{