{% macro make_link(view, label) -%} {{label}} {%- endmacro %} {% macro statslink(stats, stat, playbook, host) %} {% if stats[stat] and stats[stat] >= 1 -%} {{ make_link('playbook.playbook_results', stats[stat], playbook=playbook.id, host=host.name, status=stat) }} {% else -%} 0 {% endif %} {% endmacro %} {% macro render_value_type(value, type) %} {% if type == 'json' %}
{{ value |to_nice_json |safe }}
{% elif type == 'url' %} {{ value }} {% else %}
{{ value }}
{% endif %} {% endmacro %}