{% extends 'generic/object.html' %} {% load ninja_tags %} {% load static %} {% block content %}
Ninja Template
Name {{ object.name }}
Output type {% badge object.output_type bg_color=object.get_output_type_color %}
{% include 'inc/panels/tags.html' %}
Object Types
{% for object_type in object.object_types.all %} {% empty %} {% endfor %}
{{ object_type }}
---
Code
{{ object.code }}
{% if not object.object_types.all.count %}
Rendered
{% if object.output_type == 'drawio' %}
{% else %}
{% render_object object target_object=object %}
{% endif %}
View in API.
{% with ninja_templates=object|as_list %} {% if object.output_type == 'drawio' %} {% include "_drawio_script.html" %} {% endif %} {% endwith %} {% else %}
Rendered
See target objects to view rendered template when object types are set.
{% endif %} {% endblock %}