liquid_feedback_frontend

changeset 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 7b7406a84346
children 473d372c6ec7
files app/main/delegation/_list.lua app/main/member/show.lua
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
     2.1 --- a/app/main/member/show.lua	Tue Nov 10 21:14:35 2020 +0100
     2.2 +++ b/app/main/member/show.lua	Tue Nov 10 21:22:01 2020 +0100
     2.3 @@ -161,7 +161,7 @@
     2.4          end }
     2.5        end }
     2.6      end
     2.7 -    --[[
     2.8 +
     2.9      ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
    2.10        ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
    2.11          ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Outgoing delegations" }
    2.12 @@ -185,7 +185,7 @@
    2.13          }
    2.14        end }
    2.15      end }
    2.16 -    --]]
    2.17 +
    2.18    end }
    2.19      
    2.20    ui.cell_sidebar{ content = function()

Impressum / About Us