From 3fd8a0aad4710a01543102fc3c8a02e4b35dda1f Mon Sep 17 00:00:00 2001 From: Daniel Lawrence Date: Fri, 11 Oct 2013 14:46:39 +1100 Subject: [PATCH] Add links for facts and nodes in fact table macro Added links to the node page from the facts_table if show_nodes is True. Added links to the facts page from the facts_table if show_nodes is False. Added logic to switch TH table from facts to nodes if show_nodes is True. --- puppetboard/templates/_macros.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/puppetboard/templates/_macros.html b/puppetboard/templates/_macros.html index 15990c2..49cdce0 100644 --- a/puppetboard/templates/_macros.html +++ b/puppetboard/templates/_macros.html @@ -5,7 +5,11 @@ + {% if show_node %} + + {% else %} + {% endif %} @@ -13,9 +17,9 @@ {% for fact in facts %} {% if show_node %} - + {% else %} - + {% endif %}
NodeFactValue
{{fact.node}}{{fact.node}}{{fact.name}}{{fact.name}}{{fact.value}}