templates: Sort fact tables.

We actually had a function that would sort the facts tables by default
based on the first column but weren't using this. Testing with the
upcoming PuppetDB 1.6 made this bug surface because PuppetDB stopped
sorting facts by itself.
This commit is contained in:
Daniele Sluijters
2014-01-21 14:59:58 +01:00
parent bdd1a39b10
commit 386fea9e1e
2 changed files with 6 additions and 1 deletions

View File

@@ -4,6 +4,11 @@ Changelog
This is the changelog for Puppetboard.
0.0.4
=====
* Fix the sorting of the different tables containing facts.
0.0.3
=====
This release introduces a few big changes. The most obvious one is the

View File

@@ -2,7 +2,7 @@
<div class="filter" style="margin-bottom:{{margin_bottom}}px;margin-top:{{margin_top}}px;">
<input {% if autofocus %} autofocus="autofocus" {% endif %} style="width:100%" type="text" class="filter-table input-medium search-query" placeholder="Type here to filter">
</div>
<table class="filter-table table table-striped {% if condensed %}table-condensed{% endif%}" style="table-layout:fixed">
<table class="filter-table facts table table-striped {% if condensed %}table-condensed{% endif%}" style="table-layout:fixed">
<thead>
<tr>
{% if show_node %}