{% macro render_public_protection_message() -%}
{% trans %}Public{% endtrans %}
{% trans -%} This object is publicly accessible since it is set as public. {%- endtrans %}
{%- endmacro %} {% macro render_protected_protection_message() -%}
{% trans %}Protected{% endtrans %}
{% trans -%} This object is only accessible by the users specified above and the managers of parent resources. {%- endtrans %}
{%- endmacro %} {% macro render_inherited_protection_message(parent, parent_type) -%}
{% if parent.is_protected %}
{% trans %}Protected{% endtrans %}
{% trans parent_type=parent_type, parent_title = parent.title -%} This object is not publicly accessible since {{ parent_title }} ({{ parent_type }}) is protected. {%- endtrans %}
{% else %}
{% trans %}Public{% endtrans %}
{% trans parent_type=parent_type, parent_title=parent.title -%} This object is publicly accessible since {{ parent_title }} ({{ parent_type }}) is not protected. {%- endtrans %}
{% endif %}
{%- endmacro %} {%- macro render_non_inheriting_children_message(protected_object, non_inheriting_objects) -%} {% if non_inheriting_objects %}
{% trans %}Children with different protection{% endtrans %}
{% trans -%} Some elements inside this object have different protection settings. {%- endtrans %} {%- trans %}Show them.{% endtrans -%}
{% endif %} {%- endmacro -%}