UNPKG

apostrophe

Version:

The Apostrophe Content Management System.

15 lines (14 loc) 687 B
{% import 'apostrophe-schemas:macros.html' as schemas %} {# choice is the object. relationship contains any relationship properties. #} <div class="apos-text-meta">{% block meta %}{% endblock %}</div> <div class="apos-text-normal">{% block title %}{{ __ns('apostrophe', choice.title | d('') or "No title property" ) }}{% endblock %}</div> {%- block inline -%} {%- set inline = apos.utils.filterNonempty(data.relationship, 'inline') -%} {%- if inline.length -%} <div data-relationship-inline="{{ choice._id }}" class="apos-relationship-inline"> {% for field in inline %} {{ apos.schemas.field(field) }} {% endfor %} </div> {%- endif -%} {%- endblock -%}