annotate app/main/index/_updated_drafts.lua @ 74:e40051909836
Old sentence part deleted.
 | author | 
 Thomas Wuerfel | 
 | date | 
 Wed May 26 15:47:52 2010 +0200 (2010-05-26) | 
 | parents | 
 4f39f0a0d5b5  | 
 | children | 
 733f65c0c0a0  | 
 
 | rev | 
   line source | 
| 
bsw@57
 | 
     1 local initiatives_selector = Initiative:new_selector()
 | 
| 
bsw@57
 | 
     2   :join("issue", "_issue_state", "_issue_state.id = initiative.issue_id AND _issue_state.closed ISNULL AND _issue_state.fully_frozen ISNULL")
 | 
| 
bsw@57
 | 
     3   :join("current_draft", "_current_draft", "_current_draft.initiative_id = initiative.id")
 | 
| 
bsw@57
 | 
     4   :join("supporter", "supporter", { "supporter.member_id = ? AND supporter.initiative_id = initiative.id AND supporter.draft_id < _current_draft.id", app.session.member_id })
 | 
| 
bsw@57
 | 
     5 
 | 
| 
bsw@57
 | 
     6 if initiatives_selector:count() > 0 then
 | 
| 
bsw@57
 | 
     7   ui.container{
 | 
| 
bsw@57
 | 
     8     attr = { style = "font-weight: bold;" },
 | 
| 
bsw@57
 | 
     9     content = _"Open initiatives you are supporting which has been updated their draft:"
 | 
| 
bsw@57
 | 
    10   }
 | 
| 
bsw@57
 | 
    11 
 | 
| 
bsw@57
 | 
    12   execute.view{
 | 
| 
bsw@57
 | 
    13     module = "initiative",
 | 
| 
bsw@57
 | 
    14     view = "_list",
 | 
| 
bsw@57
 | 
    15     params = { initiatives_selector = initiatives_selector }
 | 
| 
bsw@57
 | 
    16   }
 | 
| 
bsw@57
 | 
    17 end |