liquid_feedback_frontend

annotate app/main/initiative/_show_voting.lua @ 52:88ac7798b562

Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies

- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author bsw/jbe
date Thu Apr 15 19:58:25 2010 +0200 (2010-04-15)
parents a6caaff47205
children 256d9be75916
rev   line source
bsw/jbe@19 1 local initiative = param.get("initiative", "table")
bsw/jbe@19 2
bsw/jbe@19 3 if initiative.revoked then
bsw/jbe@19 4 slot.put(_"Not voted (revoked from initiator)")
bsw/jbe@19 5 elseif initiative.admitted == false then
bsw/jbe@19 6 slot.put(_"Not voted (not admitted)")
bsw/jbe@19 7 else
bsw/jbe@19 8
bsw@31 9 execute.view{
bsw@31 10 module = "initiative",
bsw@31 11 view = "_battles",
bsw@31 12 params = { initiative = initiative }
bsw@31 13 }
bsw/jbe@19 14
bsw/jbe@19 15 ui.container{
bsw/jbe@19 16 attr = { class = "heading" },
bsw/jbe@19 17 content = _"Member voting"
bsw/jbe@19 18 }
bsw/jbe@19 19
bsw/jbe@19 20 execute.view{
bsw/jbe@19 21 module = "member",
bsw/jbe@19 22 view = "_list",
bsw/jbe@19 23 params = {
bsw/jbe@19 24 initiative = initiative,
bsw/jbe@19 25 members_selector = initiative.issue:get_reference_selector("direct_voters")
bsw/jbe@19 26 :left_join("vote", nil, { "vote.initiative_id = ? AND vote.member_id = member.id", initiative.id })
bsw/jbe@19 27 :add_field("direct_voter.weight as voter_weight")
bsw/jbe@19 28 :add_field("coalesce(vote.grade, 0) as grade")
bsw/jbe@19 29 }
bsw/jbe@19 30 }
bsw/jbe@19 31
bsw/jbe@19 32 end

Impressum / About Us