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
This commit is contained in:
Daniele Sluijters
2013-11-06 08:40:46 +01:00
parent eb1bf7c3ab
commit 398156b0ae

View File

@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% import '_macros.html' as macros %}
{% block content %}
<h1>{{name}}{% if value %}/{{value}}{% endif %}</h1>
<h1>{{name}}{% if value %}/{{value}}{% endif %} ({{facts|length}})</h1>
{{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 %}