{% load rest_framework %}
{% if page == "index" %}
API
{% elif page == "host_index" %}
{# provided by the view, host-list or latesthost-list #}
{% if api_link_url == "host-list" %}
API
{% else %}
API
{% endif %}
{% elif page == "task_index" %}
API
{% elif playbook.id %}
API
{% elif result.id %}
API
{% elif task.id %}
API
{% elif host.id %}
API
{% elif file.id %}
API
{% elif record.id %}
API
{% else %}
API
{% endif %}