liquid_feedback_frontend

view model/policy.lua @ 167:1fdf1e607494

fix vote count display in corner cases

if number of voters are 0 or votes are 0 don't show percentes they are useless or -nan :-)
author Daniel Poelzleithner <poelzi@poelzi.org>
date Sat Oct 09 21:34:25 2010 +0200 (2010-10-09)
parents afd9f769c7ae
children 46351752814f
line source
1 Policy = mondelefant.new_class()
2 Policy.table = 'policy'
4 Policy:add_reference{
5 mode = '1m',
6 to = "Issue",
7 this_key = 'id',
8 that_key = 'policy_id',
9 ref = 'issues',
10 back_ref = 'policy'
11 }

Impressum / About Us