liquid_feedback_frontend
diff app/main/index/_updated_drafts.lua @ 57:4f39f0a0d5b5
Listing of updated drafts on start page; Code cleanup; Minor bugfix
MOTD, initiator invite, issues to vote and listing of updated drafts shown as tabs on start page;
Bugfix: Initiator icon only shown when initiatorship has been accepted
MOTD, initiator invite, issues to vote and listing of updated drafts shown as tabs on start page;
Bugfix: Initiator icon only shown when initiatorship has been accepted
author | bsw |
---|---|
date | Sat Apr 17 21:59:02 2010 +0200 (2010-04-17) |
parents | |
children | 733f65c0c0a0 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/_updated_drafts.lua Sat Apr 17 21:59:02 2010 +0200 1.3 @@ -0,0 +1,17 @@ 1.4 +local initiatives_selector = Initiative:new_selector() 1.5 + :join("issue", "_issue_state", "_issue_state.id = initiative.issue_id AND _issue_state.closed ISNULL AND _issue_state.fully_frozen ISNULL") 1.6 + :join("current_draft", "_current_draft", "_current_draft.initiative_id = initiative.id") 1.7 + :join("supporter", "supporter", { "supporter.member_id = ? AND supporter.initiative_id = initiative.id AND supporter.draft_id < _current_draft.id", app.session.member_id }) 1.8 + 1.9 +if initiatives_selector:count() > 0 then 1.10 + ui.container{ 1.11 + attr = { style = "font-weight: bold;" }, 1.12 + content = _"Open initiatives you are supporting which has been updated their draft:" 1.13 + } 1.14 + 1.15 + execute.view{ 1.16 + module = "initiative", 1.17 + view = "_list", 1.18 + params = { initiatives_selector = initiatives_selector } 1.19 + } 1.20 +end 1.21 \ No newline at end of file