liquid_feedback_frontend

diff app/main/initiative/_list.lua @ 558:18e8de7a2b6a

Show notifications on start page as ulli list with links instead of tabs
author bsw
date Tue Jun 19 21:20:46 2012 +0200 (2012-06-19)
parents c1dc3b14a4f3
children 344e5fdce8c9
line diff
     1.1 --- a/app/main/initiative/_list.lua	Tue Jun 19 18:45:45 2012 +0200
     1.2 +++ b/app/main/initiative/_list.lua	Tue Jun 19 21:20:46 2012 +0200
     1.3 @@ -1,6 +1,13 @@
     1.4  local issue = param.get("issue", "table")
     1.5 +local initiatives_selector = param.get("initiatives_selector", "table")
     1.6  
     1.7 -local initiatives = issue.initiatives
     1.8 +local initiatives
     1.9 +if issue then
    1.10 +  initiatives = issue.initiatives
    1.11 +else
    1.12 +  initiatives = initiatives_selector:exec()
    1.13 +  initiatives:load_everything_for_member_id(app.session.member_id)
    1.14 +end
    1.15  
    1.16  local highlight_initiative = param.get("highlight_initiative", "table")
    1.17  
    1.18 @@ -21,8 +28,6 @@
    1.19    end
    1.20  end
    1.21  
    1.22 -local issue = param.get("issue", "table")
    1.23 -
    1.24  local name = "initiative_list"
    1.25  if issue then
    1.26    name = "issue_" .. tostring(issue.id) ..  "_initiative_list"

Impressum / About Us