mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
16 lines
456 B
HTML
16 lines
456 B
HTML
|
|
{% import 'common/thumbnail.html' as thumbnail %}
|
|
|
|
{% if not_wrapped is defined and not_wrapped %}
|
|
{% set wrap = false %}
|
|
{% else %}
|
|
{% set wrap = true %}
|
|
{% endif %}
|
|
|
|
{% if user.ACL().has_access_to_subdef(record, 'preview') %}
|
|
{% set preview_obj = record.get_preview() %}
|
|
{% else %}
|
|
{% set preview_obj = record.get_thumbnail() %}
|
|
{% endif %}
|
|
|
|
{{thumbnail.format(preview_obj, preview_obj.get_width(), preview_obj.get_height(), '', session, wrap)}} |