{% macro facts_table(facts, autofocus=False, condensed=False, show_node=False, show_value=True, link_facts=False, margin_top=20, margin_bottom=20) -%}
  
  
    
      {% if show_node %}
      | Node{% else %} | Fact{% endif %}
      {% if show_value %} | Value{% endif %} | 
  
  
    {% for fact in facts %}
    
      {% if show_node %}
        | {{fact.node}}{% else %} | {{fact.name}}{% endif %}
      {% if show_value %} | {% if link_facts %}
          {{fact.value}}
        {% else %}
          {{fact.value}}
        {% endif %}{% endif %} | 
    {% endfor %}
  
{%- endmacro %}
{% macro facts_graph(facts, autofocus=False, condensed=False, show_node=False, margin_top=20, margin_bottom=20) -%}
{%- endmacro %}
{% macro facts_graph_value(facts, autofocus=False, condensed=False, show_node=False, margin_top=20, margin_bottom=20) -%}
{%- endmacro %}
{% macro reports_table(reports, nodename, condensed=False, hash_truncate=False, show_conf_col=True, show_agent_col=True, show_host_col=True) -%}
  Only showing the last ten reports.
  
    
      | Start time | Run time | Full report{% if show_conf_col %} | Configuration version{% endif %}
      {% if show_agent_col %} | Agent version{% endif %}
      {% if show_host_col %} | Hostname{% endif %} | 
  
  
  {% for report in reports %}
    {% if hash_truncate %}
    {% set rep_hash = "%s…"|format(report.hash_[0:6])|safe %}
    {% else %}
    {% set rep_hash = report.hash_ %}
    {% endif %}
    {% if report.failed %}
    
    {% else %}
    
    {% endif %}
    | {{report.start}} | {{report.run_time}} | {{rep_hash}}{% if show_conf_col %} | {{report.version}}{% endif %}
      {% if show_agent_col %} | {{report.agent_version}}{% endif %}
      {% if show_host_col %} | {{nodename}}{% endif %} | 
    {% endfor %}
  
{%- endmacro %}