# HG changeset patch # User bsw # Date 1345228342 -7200 # Node ID c85f17285a9482b40e9d4b1f4504d3165b68ff43 # Parent 3f0e418875517526df29fe317bda110dcbbd0c1d Show indirect majority in policy list, link policy view in policy list diff -r 3f0e41887551 -r c85f17285a94 app/main/policy/list.lua --- a/app/main/policy/list.lua Fri Aug 17 20:05:23 2012 +0200 +++ b/app/main/policy/list.lua Fri Aug 17 20:32:22 2012 +0200 @@ -13,8 +13,8 @@ label_attr = { width = "500" }, label = _"Policy", content = function(policy) - ui.tag{ - tag = "div", + ui.link{ + module = "policy", view = "show", id = policy.id, attr = { style = "font-weight: bold" }, content = function() slot.put(encode.html(policy.name)) @@ -52,9 +52,13 @@ value = "≥ " .. tostring(policy.initiative_quorum_num) .. "/" .. tostring(policy.initiative_quorum_den) } ui.field.text{ - label = _"majority" .. ":", + label = _"Direct majority" .. ":", value = (policy.direct_majority_strict and ">" or "≥" ) .. " " .. tostring(policy.direct_majority_num) .. "/" .. tostring(policy.direct_majority_den) } + ui.field.text{ + label = _"Indirect majority" .. ":", + value = (policy.indirect_majority_strict and ">" or "≥" ) .. " " .. tostring(policy.indirect_majority_num) .. "/" .. tostring(policy.indirect_majority_den) + } end }, }