liquid_feedback_frontend

diff app/main/initiative/_suggestions.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 b77e6a17ca77
children
line diff
     1.1 --- a/app/main/initiative/_suggestions.lua	Tue Apr 17 00:07:04 2012 +0200
     1.2 +++ b/app/main/initiative/_suggestions.lua	Fri May 18 19:07:07 2012 +0200
     1.3 @@ -1,31 +1,5 @@
     1.4  local initiative = param.get("initiative", "table")
     1.5  
     1.6 -if app.session.member_id
     1.7 -  and not initiative.issue.half_frozen
     1.8 -  and not initiative.issue.closed
     1.9 -  and not initiative.revoked
    1.10 -  and app.session.member:has_voting_right_for_unit_id(initiative.issue.area.unit_id)
    1.11 -then
    1.12 -  ui.link{
    1.13 -    content = function()
    1.14 -      ui.image{ static = "icons/16/comment_add.png" }
    1.15 -      slot.put(_"Add new suggestion")
    1.16 -    end,
    1.17 -    module = "suggestion",
    1.18 -    view = "new",
    1.19 -    params = {
    1.20 -      initiative_id = initiative.id
    1.21 -    }
    1.22 -  }
    1.23 -end
    1.24 +
    1.25  
    1.26 -execute.view{
    1.27 -  module = "suggestion",
    1.28 -  view = "_list",
    1.29 -  params = {
    1.30 -    initiative = initiative,
    1.31 -    suggestions_selector = initiative:get_reference_selector("suggestions"),
    1.32 -    tab_id = param.get("tab_id")
    1.33 -  }
    1.34 -}
    1.35  

Impressum / About Us