{% extends 'generic/object.html' %} {% load tabs %} {% load ninja_tags %} {% load static %} {% block content %}
{% for ninja_template in ninja_templates.all %}
Name Output type API
{{ ninja_template|linkify:"name" }} {% badge ninja_template.output_type bg_color=ninja_template.get_output_type_color %} Open {% if perms.netbox_ninja_plugin.change_ninjatemplate %} {% endif %}
Rendered
{% if ninja_template.output_type == 'drawio' %}
{% else %}
{% render_object ninja_template target_object=object %}
{% endif %}
{% endfor %}
{% if ninja_templates.all|any_drawio %} {% include "_drawio_script.html" %} {% endif %} {% endblock %}