liquid_feedback_frontend

diff app/main/initiative/_list_element.lua @ 159:5d797c6706d5

implement quorum display

show the initiative quorum as a small 1px line in bargraph
allow to update your support on the diff page
better linked title in diff page
show absolute quorum numbers in detail pages of issue and initiative
author Daniel Poelzleithner <poelzi@poelzi.org>
date Sat Oct 09 03:42:48 2010 +0200 (2010-10-09)
parents df5392f114e2
children 86988175dc89
line diff
     1.1 --- a/app/main/initiative/_list_element.lua	Fri Oct 08 20:36:56 2010 +0200
     1.2 +++ b/app/main/initiative/_list_element.lua	Sat Oct 09 03:42:48 2010 +0200
     1.3 @@ -112,6 +112,8 @@
     1.4                    ui.bargraph{
     1.5                      max_value = max_value,
     1.6                      width = 100,
     1.7 +                    quorum = max_value * (initiative.issue.policy.initiative_quorum_num / initiative.issue.policy.initiative_quorum_den),
     1.8 +                    quorum_color = "#00F",
     1.9                      bars = {
    1.10                        { color = "#0a0", value = (initiative.satisfied_supporter_count or 0) },
    1.11                        { color = "#bbb", value = (initiative.supporter_count or 0) - (initiative.satisfied_supporter_count or 0) },

Impressum / About Us