liquid_feedback_frontend
diff app/main/delegation/_list.lua @ 1567:c87cc80b7904
Show incoming and outgoing delegations in member view
| author | bsw |
|---|---|
| date | Tue Nov 10 21:22:01 2020 +0100 (2020-11-10) |
| parents | 701a5cf6b067 |
| children | 5ed7182be7b9 |
line diff
1.1 --- a/app/main/delegation/_list.lua Tue Nov 10 21:14:35 2020 +0100 1.2 +++ b/app/main/delegation/_list.lua Tue Nov 10 21:22:01 2020 +0100 1.3 @@ -18,7 +18,7 @@ 1.4 unit = delegation.unit 1.5 end 1.6 slot.put("<br style='clear: left;' />") 1.7 - ui.heading { attr = { style = "float: left;" }, level = 3, content = function() 1.8 + ui.container { attr = { style = "float: left;" }, content = function() 1.9 ui.link{ 1.10 content = unit.name, 1.11 module = "unit", 1.12 @@ -69,6 +69,7 @@ 1.13 member_id = delegation.truster_id, class = "micro_avatar", popup_text = delegation.truster.name, 1.14 image_type = "avatar", show_dummy = true, 1.15 } } 1.16 + ui.link{ module = "member", view = "show", id = delegation.truster_id, content = delegation.truster.name } 1.17 elseif delegation.trustee then 1.18 ui.image{ 1.19 attr = { class = "delegation_arrow" }, 1.20 @@ -78,6 +79,7 @@ 1.21 member_id = delegation.trustee_id, class = "micro_avatar", popup_text = delegation.trustee.name, 1.22 image_type = "avatar", show_dummy = true, 1.23 } } 1.24 + ui.link{ module = "member", view = "show", id = delegation.trustee_id, content = delegation.trustee.name } 1.25 else 1.26 ui.tag{ content = _"Delegation abandoned" } 1.27 end