blog/webapp/templates/permission/_get.html

53 lines
1.7 KiB
HTML
Raw Normal View History

2021-05-15 01:04:17 +02:00
{% if has_permission("permission", "subject.read", instance) %}
{% if "subject" not in skip_list %}
<li id="display-permission-subject"><strong>{{ _("subject") }}</strong>:
{% if not instance.subject %}{% else %}
{{ instance.subject }}
</li>
{% endif %}
{% endif %}
{% endif %}
{% if has_permission("permission", "subject_id.read", instance) %}
{% if "subject_id" not in skip_list %}
<li id="display-permission-subject_id"><strong>{{ _("subject_id") }}</strong>:
{% if not instance.subject_id %}{% else %}
{{ instance.subject_id }}
</li>
{% endif %}
{% endif %}
{% endif %}
{% if has_permission("permission", "action.read", instance) %}
{% if "action" not in skip_list %}
<li id="display-permission-action"><strong>{{ _("action") }}</strong>:
{% if not instance.action %}{% else %}
{{ instance.action }}
</li>
{% endif %}
{% endif %}
{% endif %}
{% if has_permission("permission", "object.read", instance) %}
{% if "object" not in skip_list %}
<li id="display-permission-object"><strong>{{ _("object") }}</strong>:
{% if not instance.object %}{% else %}
{{ instance.object }}
</li>
{% endif %}
{% endif %}
{% endif %}
{% if has_permission("permission", "object_id.read", instance) %}
{% if "object_id" not in skip_list %}
<li id="display-permission-object_id"><strong>{{ _("object_id") }}</strong>:
{% if not instance.object_id %}{% else %}
{{ instance.object_id }}
</li>
{% endif %}
{% endif %}
{% endif %}
{% if has_permission("permission", "is_allowed.read", instance) %}
{% if "is_allowed" not in skip_list %}
<li id="display-permission-is_allowed"><strong>{{ _("is_allowed") }}</strong>:
{{ instance.is_allowed|bool }}
</li>
{% endif %}
{% endif %}