From 398156b0ae8caffeaacef2002791f1ac0d6d7b3c Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Wed, 6 Nov 2013 08:40:46 +0100 Subject: [PATCH] fact: Add the counter back to facts. Since we're now already consuming the generator and creating a list we can call lenght on it just fine. Closes #18 --- puppetboard/templates/fact.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppetboard/templates/fact.html b/puppetboard/templates/fact.html index 0617065..9950d74 100644 --- a/puppetboard/templates/fact.html +++ b/puppetboard/templates/fact.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% import '_macros.html' as macros %} {% block content %} -

{{name}}{% if value %}/{{value}}{% endif %}

+

{{name}}{% if value %}/{{value}}{% endif %} ({{facts|length}})

{{macros.facts_graph(facts, autofocus=True, show_node=True, margin_bottom=10)}} {{macros.facts_graph_value(facts, autofocus=True, show_node=True, margin_bottom=10)}} {% if value %}