liquid_feedback_frontend
view 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
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 source
1 local initiative = Initiative:by_id(param.get("initiative_id", atom.integer))
2 local issue = initiative.issue
3 local member = Member:by_id(param.get("member_id", atom.integer))
5 local members_selector = Member:new_selector()
6 :join("delegating_population_snapshot", nil, "delegating_population_snapshot.member_id = member.id")
7 :add_where{ "delegating_population_snapshot.issue_id = ?", issue.id }
8 :add_where{ "delegating_population_snapshot.event = ?", issue.latest_snapshot_event }
9 :add_where{ "delegating_population_snapshot.delegate_member_ids[1] = ?", member.id }
10 :add_field{ "delegating_population_snapshot.weight" }
12 execute.view{
13 module = "member",
14 view = "_list",
15 params = {
16 members_selector = members_selector,
17 issue = issue,
18 trustee = member
19 }
20 }