{% extends 'base.html' %} {% load inventory_extras %} {% load ui_extras%} {% block content %}

Quer{{ page_obj.paginator.count|pluralize:"y,ies" }} ({{ page_obj.paginator.count }})

{{ form }}
{% if perms.osquery.add_query %} {% url 'osquery:create_query' as url %} {% button 'CREATE' url "Create new Query" %} {% endif %}
{% if page_obj%} {% pagination next_url previous_url %} {% if perms.osquery.view_pack %} {% endif %} {% if perms.osquery.view_distributedquery %} {% endif %} {% for query in page_obj %} {% with query.tables as tables %} {% if perms.osquery.view_pack %} {% endif %} {% if perms.osquery.view_distributedquery %} {% endif %} {% endwith %} {% endfor %}
Name / Tables Compliance check TagPackRuns
{{ query }} {% if tables %}

{% for table in query.tables %}{{ table }} {% endfor %}

{% endif %}
{% if query.compliance_check %}yes{% else %}no{% endif %} {% if query.tag %}{% inventory_tag query.tag %}{% else %}-{% endif %} {% if query.packquery %}{{ query.packquery.pack }}{% else %}-{% endif %} {% if query.distributed_query_count %}{{ query.distributed_query_count }}{% else %}-{% endif %}
{% pagination next_url previous_url %} {% elif form.has_changed %} {% url 'osquery:queries' as empty_results_url %} {% empty_results empty_results_url %} {% endif %} {% endblock %} {% block extrajs %} {% endblock %}