liquid_feedback_frontend

annotate 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
author bsw
date Sat Apr 17 21:59:02 2010 +0200 (2010-04-17)
parents
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

Impressum / About Us