mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
15 lines
769 B
Twig
15 lines
769 B
Twig
{% macro caption(record, can_see_business, display_exif, limitedWidth = false) %}
|
|
<dl class="{% if limitedWidth %}{% else %}dl-horizontal{% endif %}">
|
|
{% for name, value in record.getCaption(caption_field_order(record, can_see_business)) %}
|
|
{% if caption_field_gui_visible(record, name) == 1 %}
|
|
<dt>{{ caption_field_label(record, name) }}</dt>
|
|
<dd>{{ caption_field(record, name, value)|e|highlight|linkify|parseColor }}</dd>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</dl>
|
|
{% if display_exif|default(true) and app.getAuthenticator().user is not none and user_setting('technical_display') == 'group' %}
|
|
<hr/>
|
|
{% include 'common/technical_datas.html.twig' %}
|
|
{% endif %}
|
|
{% endmacro %}
|