liquid_feedback_frontend
annotate app/main/index/initiator_invites.lua @ 1513:895d327a3cb1
Limit issues to single unit if single unit mode is configured
| author | bsw | 
|---|---|
| date | Thu Aug 20 13:50:03 2020 +0200 (2020-08-20) | 
| parents | 7dc5ab12bfe3 | 
| children | 
| rev | line source | 
|---|---|
| bsw@619 | 1 local initiatives_selector = Initiator:selector_for_invites(app.session.member_id) | 
| bsw@558 | 2 | 
| bsw@619 | 3 ui.title(_"Initiatives that invited you to become initiator:") | 
| bsw@558 | 4 | 
| bsw@558 | 5 if initiatives_selector:count() > 0 then | 
| bsw@558 | 6 execute.view{ | 
| bsw@558 | 7 module = "initiative", | 
| bsw@558 | 8 view = "_list", | 
| bsw@558 | 9 params = { initiatives_selector = initiatives_selector } | 
| bsw@558 | 10 } | 
| bsw@558 | 11 else | 
| bsw@558 | 12 ui.field.text{ value = _"You are currently not invited to any initiative." } | 
| bsw@558 | 13 end |