From 62d1f26f7ae510083720d244020d48ed2b0d9110 Mon Sep 17 00:00:00 2001 From: Fotis Gimian Date: Sun, 10 May 2015 14:53:21 +1000 Subject: [PATCH] Added the report column to the dashboard page --- puppetboard/static/coffeescript/tables.coffee | 2 +- puppetboard/static/js/tables.js | 4 +++- puppetboard/templates/index.html | 16 ++++++++++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/puppetboard/static/coffeescript/tables.coffee b/puppetboard/static/coffeescript/tables.coffee index 9b47f45..1155182 100644 --- a/puppetboard/static/coffeescript/tables.coffee +++ b/puppetboard/static/coffeescript/tables.coffee @@ -13,7 +13,7 @@ $('.facts').tablesorter( $('.dashboard').tablesorter( headers: - 2: + 3: sorter: false sortList: [[0, 1]] ) diff --git a/puppetboard/static/js/tables.js b/puppetboard/static/js/tables.js index ccac257..df7673b 100644 --- a/puppetboard/static/js/tables.js +++ b/puppetboard/static/js/tables.js @@ -21,7 +21,9 @@ $('.dashboard').tablesorter({ headers: { - 2: { sorter: false } + 3: { + sorter: false + } }, sortList: [[0, 1]] }); diff --git a/puppetboard/templates/index.html b/puppetboard/templates/index.html index d43225c..dc76ea8 100644 --- a/puppetboard/templates/index.html +++ b/puppetboard/templates/index.html @@ -65,7 +65,8 @@ Status - Hostname + Hostname + Report @@ -99,9 +100,16 @@ {{ node.name }} - - - + {% if node.report_timestamp %} + {{ node.report_timestamp }} + {% else %} + + {% endif %} + + + {% if node.report_timestamp %} + + {% endif %} {% endif %}