mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
21 lines
1.1 KiB
Twig
21 lines
1.1 KiB
Twig
{% import 'common/macros.html.twig' as macro %}
|
|
|
|
{% set business = false %}
|
|
{% if app['authentication'].getUser() is not none %}
|
|
{% set business = app['acl'].get(app['authentication'].getUser()).has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
|
{% endif %}
|
|
|
|
{% if view == 'answer' %}
|
|
{{ macro.format_caption(record, highlight|default(''), searchEngine|default(null), business, false, true) }}
|
|
{% elseif view == 'lazaret' %}
|
|
{{ macro.format_caption(record, highlight|default(''), searchEngine|default(null), business, true, true) }}
|
|
{% elseif view == 'preview' %}
|
|
{{ macro.format_caption(record, highlight|default(''), searchEngine|default(null), business, true, false) }}
|
|
{% elseif view == 'basket' %}
|
|
{{ macro.format_caption(record, highlight|default(''), searchEngine|default(null), business, true, false) }}
|
|
{% elseif view == 'overview' %}
|
|
{{ macro.format_caption(record, highlight|default(''), searchEngine|default(null), business, false, false) }}
|
|
{% elseif view == 'publi' %}
|
|
{{ macro.format_caption(record, '', null, business, true, true) }}
|
|
{% endif %}
|