liquid_feedback_frontend

diff app/main/supporter/show_incoming.lua @ 3:768faea1096d

Version alpha4

Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.

Initiatives may provide a link to an external discussion platform

Direct link on every initiative page to create an alternative initiative

Bugfix: No error when clicking "neutral", when "neutral" is currently selected
author bsw
date Mon Nov 30 12:00:00 2009 +0100 (2009-11-30)
parents
children 80c215dbf076
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/supporter/show_incoming.lua	Mon Nov 30 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +local initiative = Initiative:by_id(param.get("initiative_id", atom.integer))
     1.5 +local issue = initiative.issue
     1.6 +local member = Member:by_id(param.get("member_id", atom.integer))
     1.7 +
     1.8 +local members_selector = Member:new_selector()
     1.9 +  :join("delegating_population_snapshot", nil, "delegating_population_snapshot.member_id = member.id")
    1.10 +  :add_where{ "delegating_population_snapshot.issue_id = ?", issue.id }
    1.11 +  :add_where{ "delegating_population_snapshot.event = ?", issue.latest_snapshot_event }
    1.12 +  :add_where{ "delegating_population_snapshot.delegate_member_ids[1] = ?", member.id }
    1.13 +  :add_field{ "delegating_population_snapshot.weight" }
    1.14 +
    1.15 +execute.view{
    1.16 +  module = "member",
    1.17 +  view = "_list",
    1.18 +  params = { 
    1.19 +    members_selector = members_selector,
    1.20 +    issue = issue,
    1.21 +    trustee = member
    1.22 +  }
    1.23 +}
    1.24 \ No newline at end of file

Impressum / About Us