liquid_feedback_frontend
annotate app/main/file/show.jpg.lua @ 1510:2b4b243f625e
French translation contributed
| author | Institut de Recherche et d'Innovation |
|---|---|
| date | Tue Aug 18 19:54:45 2020 +0200 (2020-08-18) |
| parents | 17e7082c377a |
| children |
| rev | line source |
|---|---|
| bsw@1495 | 1 local id = param.get_id() |
| bsw@1495 | 2 |
| bsw@1495 | 3 local file = File:by_id(id) |
| bsw@1495 | 4 |
| bsw@1495 | 5 local output = file.data |
| bsw@1495 | 6 |
| bsw@1495 | 7 if param.get("preview", atom.boolean) then |
| bsw@1495 | 8 output = file.preview_data |
| bsw@1495 | 9 end |
| bsw@1495 | 10 |
| bsw@1495 | 11 slot.set_layout(nil, file.content_type) |
| bsw@1495 | 12 slot.put_into("data", output) |