liquid_feedback_frontend

view app/main/file/show.jpg.lua @ 1737:70c81027dbd5

Render survey notifcation only if survey module is enabled
author bsw
date Mon Oct 11 09:37:26 2021 +0200 (2021-10-11)
parents 17e7082c377a
children
line source
1 local id = param.get_id()
3 local file = File:by_id(id)
5 local output = file.data
7 if param.get("preview", atom.boolean) then
8 output = file.preview_data
9 end
11 slot.set_layout(nil, file.content_type)
12 slot.put_into("data", output)

Impressum / About Us