liquid_feedback_frontend
view app/main/initiative/_action/remove_support.lua @ 2:5c601807d397
Version alpha3
Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft
Wiki formatting for drafts
Showing differences between two drafts of the same initiative
Display of outgoing delegation chains
Many other improvements
Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft
Wiki formatting for drafts
Showing differences between two drafts of the same initiative
Display of outgoing delegation chains
Many other improvements
author | bsw |
---|---|
date | Mon Nov 23 12:00:00 2009 +0100 (2009-11-23) |
parents | 3bfb2fcf7ab9 |
children | afd9f769c7ae |
line source
1 local initiative = Initiative:new_selector():add_where{ "id = ?", param.get_id()}:single_object_mode():exec()
3 local member = app.session.member
5 local supporter = Supporter:by_pk(initiative.id, member.id)
7 if supporter then
8 supporter:destroy()
9 slot.put_into("notice", _"Your support has been removed from this initiative")
10 else
11 slot.put_into("notice", _"You are already not supporting this initiative")
12 end