liquid_feedback_frontend

annotate app/main/member_image/_show.lua @ 1859:02c34183b6df

Fixed wrong filename in INSTALL file
author bsw
date Tue Nov 28 18:54:51 2023 +0100 (6 months ago)
parents 70121e414479
children
rev   line source
bsw/jbe@4 1 local member = param.get("member", "table")
bsw@525 2 local member_id = member and member.id or param.get("member_id", atom.integer)
bsw@525 3
bsw/jbe@4 4 local image_type = param.get("image_type")
bsw@274 5 local class = param.get("class")
bsw@274 6 local popup_text = param.get("popup_text")
bsw@274 7
bsw@1148 8 local force_update = param.get("force_update", atom.boolean)
bsw@1148 9
bsw@274 10 if class then
bsw@1632 11 class = class .. " "
bsw@274 12 else
bsw@274 13 class = ""
bsw@274 14 end
bsw/jbe@4 15
bsw@1632 16 if image_type == "avatar" then
bsw@1632 17 class = class .. "mdl-chip__contact "
bsw@1632 18 end
bsw@1632 19
bsw@1632 20 ui.image{
bsw@1632 21 attr = { title = popup_text, class = class .. " member_image member_image_" .. image_type },
bsw@1632 22 module = "member_image",
bsw@1632 23 view = "show",
bsw@1632 24 extension = "jpg",
bsw@1632 25 id = member_id,
bsw@1632 26 params = {
bsw@1632 27 image_type = image_type,
bsw@1632 28 dynamic = force_update and os.time() or nil
bsw@720 29 }
bsw@1632 30 }
bsw@1632 31

Impressum / About Us