nodes: Only show report button if we have a report

Based on if the report_timestamp is truthy we'll show the reports
button, instead of always having it show up.
This commit is contained in:
Daniele Sluijters
2013-08-22 13:17:48 -07:00
parent 8cf181a9e8
commit 8db60d14bd

View File

@@ -40,7 +40,9 @@
{% endif %} {% endif %}
</td> </td>
<td> <td>
{% if node.report_timestamp %}
<a class="btn btn-small btn-primary" href="{{url_for('reports_node', node=node.name)}}">Reports</a> <a class="btn btn-small btn-primary" href="{{url_for('reports_node', node=node.name)}}">Reports</a>
{% endif %}
</td> </td>
{% endif %} {% endif %}
</tr> </tr>