liquid_feedback_frontend
view app/main/index/initiator_invites.lua @ 1208:24f4c23f76ff
Moved code from draft add action to Draft model
| author | bsw | 
|---|---|
| date | Sat Jul 18 15:58:39 2015 +0200 (2015-07-18) | 
| parents | 7dc5ab12bfe3 | 
| children | 
 line source
     1 local initiatives_selector = Initiator:selector_for_invites(app.session.member_id)
     3 ui.title(_"Initiatives that invited you to become initiator:")
     5 if initiatives_selector:count() > 0 then
     6   execute.view{
     7     module = "initiative",
     8     view = "_list",
     9     params = { initiatives_selector = initiatives_selector }
    10   }
    11 else
    12   ui.field.text{ value = _"You are currently not invited to any initiative." }
    13 end
