Merge pull request #19 from daniellawrence/fact_table_template_title_and_links

Add links for facts and nodes in fact table macro
This commit is contained in:
Daniele Sluijters
2013-10-11 00:55:31 -07:00

View File

@@ -5,7 +5,11 @@
<table class="filter-table table table-striped {% if condensed %}table-condensed{% endif%}" style="table-layout:fixed"> <table class="filter-table table table-striped {% if condensed %}table-condensed{% endif%}" style="table-layout:fixed">
<thead> <thead>
<tr> <tr>
{% if show_node %}
<th>Node</th>
{% else %}
<th>Fact</th> <th>Fact</th>
{% endif %}
<th>Value</th> <th>Value</th>
</tr> </tr>
</thead> </thead>
@@ -13,9 +17,9 @@
{% for fact in facts %} {% for fact in facts %}
<tr> <tr>
{% if show_node %} {% if show_node %}
<td>{{fact.node}}</td> <td><a href="{{url_for('node', node_name=fact.node)}}">{{fact.node}}</a></td>
{% else %} {% else %}
<td>{{fact.name}}</td> <td><a href="{{url_for('fact', fact=fact.name)}}">{{fact.name}}</a></td>
{% endif %} {% endif %}
<td style="word-wrap:break-word">{{fact.value}}</td> <td style="word-wrap:break-word">{{fact.value}}</td>
</tr> </tr>