liquid_feedback_frontend
diff model/initiator.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 | 3bfb2fcf7ab9 |
children |
line diff
1.1 --- a/model/initiator.lua Tue Jun 19 18:45:45 2012 +0200 1.2 +++ b/model/initiator.lua Tue Jun 19 21:20:46 2012 +0200 1.3 @@ -25,3 +25,10 @@ 1.4 :optional_object_mode() 1.5 :exec() 1.6 end 1.7 + 1.8 +function Initiator:selector_for_invites(member_id) 1.9 + return Initiative:new_selector() 1.10 + :join("issue", "_issue_state", "_issue_state.id = initiative.issue_id") 1.11 + :join("initiator", nil, { "initiator.initiative_id = initiative.id AND initiator.member_id = ? AND initiator.accepted ISNULL", member_id }) 1.12 + :add_where("_issue_state.closed ISNULL AND _issue_state.half_frozen ISNULL") 1.13 +end