liquid_feedback_frontend

changeset 867:c85f17285a94

Show indirect majority in policy list, link policy view in policy list
author bsw
date Fri Aug 17 20:32:22 2012 +0200 (2012-08-17)
parents 3f0e41887551
children 2aa8c9f925f4
files app/main/policy/list.lua
line diff
     1.1 --- a/app/main/policy/list.lua	Fri Aug 17 20:05:23 2012 +0200
     1.2 +++ b/app/main/policy/list.lua	Fri Aug 17 20:32:22 2012 +0200
     1.3 @@ -13,8 +13,8 @@
     1.4        label_attr = { width = "500" },
     1.5        label = _"Policy",
     1.6        content = function(policy)
     1.7 -        ui.tag{
     1.8 -          tag = "div",
     1.9 +        ui.link{
    1.10 +          module = "policy", view = "show", id = policy.id,
    1.11            attr = { style = "font-weight: bold" },
    1.12            content = function()
    1.13              slot.put(encode.html(policy.name))
    1.14 @@ -52,9 +52,13 @@
    1.15            value = "≥ " .. tostring(policy.initiative_quorum_num) .. "/" .. tostring(policy.initiative_quorum_den)
    1.16          }
    1.17          ui.field.text{
    1.18 -          label = _"majority" .. ":", 
    1.19 +          label = _"Direct majority" .. ":", 
    1.20            value = (policy.direct_majority_strict and ">" or "≥" ) .. " " .. tostring(policy.direct_majority_num) .. "/" .. tostring(policy.direct_majority_den)
    1.21          }
    1.22 +        ui.field.text{
    1.23 +          label = _"Indirect majority" .. ":", 
    1.24 +          value = (policy.indirect_majority_strict and ">" or "≥" ) .. " " .. tostring(policy.indirect_majority_num) .. "/" .. tostring(policy.indirect_majority_den)
    1.25 +        }
    1.26        end
    1.27      },
    1.28    }

Impressum / About Us