Added the report column to the dashboard page

This commit is contained in:
Fotis Gimian
2015-05-10 14:53:21 +10:00
parent 59b7717e8f
commit 62d1f26f7a
3 changed files with 16 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ $('.facts').tablesorter(
$('.dashboard').tablesorter( $('.dashboard').tablesorter(
headers: headers:
2: 3:
sorter: false sorter: false
sortList: [[0, 1]] sortList: [[0, 1]]
) )

View File

@@ -21,7 +21,9 @@
$('.dashboard').tablesorter({ $('.dashboard').tablesorter({
headers: { headers: {
2: { sorter: false } 3: {
sorter: false
}
}, },
sortList: [[0, 1]] sortList: [[0, 1]]
}); });

View File

@@ -65,7 +65,8 @@
<thead> <thead>
<tr> <tr>
<th class="five wide">Status</th> <th class="five wide">Status</th>
<th class="ten wide">Hostname</th> <th class="five wide">Hostname</th>
<th class="five wide">Report</th>
<th class="one wide"></th> <th class="one wide"></th>
</tr> </tr>
</thead> </thead>
@@ -99,9 +100,16 @@
<a href="{{url_for('node', node_name=node.name)}}">{{ node.name }}</a> <a href="{{url_for('node', node_name=node.name)}}">{{ node.name }}</a>
</td> </td>
<td> <td>
<a title="Latest Report" href="{{url_for('report_latest', node_name=node.name)}}"> {% if node.report_timestamp %}
<i class="large tasks darkblue icon"></i> <a href="{{url_for('report_latest', node_name=node.name)}}" rel='utctimestamp'>{{ node.report_timestamp }}</a>
</a> {% else %}
<i class="large ban circle icon"></i>
{% endif %}
</td>
<td>
{% if node.report_timestamp %}
<a title='Reports' href="{{url_for('reports_node', node=node.name)}}"><i class='large darkblue book icon'></i></a>
{% endif %}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}