mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00

- refactor : acl strings changed to ACL class constants - code cleanup - wip but try to merge for bc break test
22 lines
813 B
Twig
22 lines
813 B
Twig
{% import 'common/macros.html.twig' as macro %}
|
|
|
|
{% set business = granted_on_collection(record.baseId, [constant('\\ACL::CANMODIFRECORD')]) %}
|
|
{% set display_exif = true %}
|
|
|
|
{% if view == 'answer' %}
|
|
{{ macro.caption(record, business, display_exif) }}
|
|
{% elseif view == 'lazaret' %}
|
|
{{ macro.caption(record, business, display_exif) }}
|
|
{% elseif view == 'preview' %}
|
|
{% set display_exif = false %}
|
|
{{ macro.caption(record, business, display_exif, true) }}
|
|
{% elseif view == 'basket' %}
|
|
{% set display_exif = false %}
|
|
{{ macro.caption(record, business, display_exif) }}
|
|
{% elseif view == 'overview' %}
|
|
{% set display_exif = false %}
|
|
{{ macro.caption(record, business, display_exif) }}
|
|
{% elseif view == 'publi' %}
|
|
{{ macro.caption(record, business, display_exif) }}
|
|
{% endif %}
|