# HG changeset patch # User bsw # Date 1647953702 -3600 # Node ID 22065357508324e85c8259302de74d67cad67542 # Parent 9c298b5832e7ddba0d672476706227e4c41ce336 Show token weight correctly diff -r 9c298b5832e7 -r 220653575083 app/main/delegation/_info.lua --- a/app/main/delegation/_info.lua Tue Mar 22 13:52:26 2022 +0100 +++ b/app/main/delegation/_info.lua Tue Mar 22 13:55:02 2022 +0100 @@ -233,9 +233,13 @@ local own_weight = privilege and privilege.weight or 0 if not issue.closed and info.own_participation and info.weight and info.weight > own_weight then + local weight = info.weight - own_weight + if config.token and config.token.unit_id == issue.area.unit_id then + weight = weight / 100 .. " " .. config.token.token_name + end slot.put(" ") ui.link { - attr = { class = "right" }, content = "+" .. (info.weight - own_weight), + attr = { class = "right" }, content = "+" .. weight, module = "interest", view = "show_incoming", params = { issue_id = issue.id, member_id = member.id }