diff --git a/puppetboard/templates/_macros.html b/puppetboard/templates/_macros.html index 15d5883..ba70a69 100644 --- a/puppetboard/templates/_macros.html +++ b/puppetboard/templates/_macros.html @@ -1,148 +1,148 @@ {% 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 %} {% else %} {% endif %} {% if show_value %} {% endif %} {% for fact in facts %} {% if show_node %} {% else %} {% endif %} {% if show_value %} {% endif %} {% endfor %}
NodeFactValue
{{fact.node}}{{fact.name}} {% if link_facts %} {{fact.value}} {% else %} {{fact.value}} {% endif %}
{%- 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.
{% if show_conf_col %} {% endif %} {% if show_agent_col %} {% endif %} {% if show_host_col %} {% 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 %} {% if show_conf_col %} {% endif %} {% if show_agent_col %} {% endif %} {% if show_host_col %} {% endif %} {% endfor %}
Start time Run time Full reportConfiguration versionAgent versionHostname
{{report.start}} {{report.run_time}} {{rep_hash}}{{report.version}}{{report.agent_version}}{{nodename}}
{%- endmacro %}