liquid_feedback_frontend

diff model/initiative.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 5c601807d397
children 80c215dbf076
line diff
     1.1 --- a/model/initiative.lua	Mon Nov 23 12:00:00 2009 +0100
     1.2 +++ b/model/initiative.lua	Mon Nov 30 12:00:00 2009 +0100
     1.3 @@ -91,6 +91,17 @@
     1.4    ref                   = 'supporting_members'
     1.5  }
     1.6  
     1.7 +Initiative:add_reference{
     1.8 +  mode                  = 'mm',
     1.9 +  to                    = "Member",
    1.10 +  this_key              = 'id',
    1.11 +  that_key              = 'id',
    1.12 +  connected_by_table    = 'direct_supporter_snapshot',
    1.13 +  connected_by_this_key = 'initiative_id',
    1.14 +  connected_by_that_key = 'member_id',
    1.15 +  ref                   = 'supporting_members_snapshot'
    1.16 +}
    1.17 +
    1.18  function Initiative:get_search_selector(search_string)
    1.19    return self:new_selector()
    1.20      :add_field( {'"highlight"("initiative"."name", ?)', search_string }, "name_highlighted")

Impressum / About Us