[%- for column in columns %] {% if has_permission("[[ name|camel_to_snake ]]", "[[ column.name ]].read", instance) %} {% if "[[ column.name ]]" not in skip_list %}
  • [%- if column.type in ['relationship'] and column.multiple %]{{ _("[[ column.name|pluralize ]]") }}[%- else %]{{ _("[[ column.name ]]") }}[%- endif %]: [%- if not column.type in ['bool', 'boolean', ] %] [%- if column.type in ['relationship'] and column.multiple %] {% if not instance.[[ column.name|pluralize ]] %}{% else %} [%- else %] {% if not instance.[[ column.name ]] %}{% else %} [%- endif %] [%- endif %] [%- if column.type in ['picture', 'image', 'img'] %] [%- elif column.type in ['video'] %] [%- elif column.type in ['audio'] %] [%- elif column.type in ['relationship'] %] [%- if column.multiple %] [%- else %] {{ instance.[[ column.name ]] }} [%- endif %] [%- elif column.type in ['bool', 'boolean', ] %] {{ instance.[[ column.name ]]|bool }} [%- else %] {{ instance.[[ column.name ]] }} [%- endif %]
  • {% endif %} [%- if not column.type in ['bool', 'boolean', ] %] {% endif %} [%- endif %] {% endif %} [%- endfor %] [%- for backref in backrefs %]
  • {{ _("[[ backref.name ]]") }}: [%- endfor %]