Make fact value clickable.

In the Facts view you can now click on the value of a fact and get a
listing of all the nodes with that value for that fact.

Closes #13
This commit is contained in:
Daniele Sluijters
2013-11-05 15:38:49 +01:00
parent 0563224c87
commit 754784f4af
4 changed files with 25 additions and 5 deletions

View File

@@ -1,8 +1,12 @@
{% extends 'layout.html' %}
{% import '_macros.html' as macros %}
{% block content %}
<h1>{{name}}</h1>
<h1>{{name}}{% if value %}/{{value}}{% endif %}</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)}}
{{macros.facts_table(facts, autofocus=True, show_node=True, margin_bottom=10)}}
{% if value %}
{{macros.facts_table(facts, autofocus=True, show_node=True, show_value=False, margin_bottom=10)}}
{% else %}
{{macros.facts_table(facts, autofocus=True, show_node=True, link_facts=True, margin_bottom=10)}}
{% endif %}
{% endblock content %}