Add total configured/unconfigured indexers counters (#830)

This commit is contained in:
kaso17 2016-12-09 17:12:09 +01:00 committed by GitHub
parent 894688337e
commit fbc48848d6
2 changed files with 4 additions and 8 deletions

View File

@ -82,7 +82,7 @@ function reloadIndexers() {
function displayConfiguredIndexersList(indexers) {
var indexersTemplate = Handlebars.compile($("#configured-indexer-table").html());
var indexersTable = $(indexersTemplate({ indexers: indexers }));
var indexersTable = $(indexersTemplate({ indexers: indexers, total_configured_indexers: indexers.length }));
indexersTable.find('table').DataTable(
{
"pageLength": 100,
@ -114,7 +114,7 @@ function displayConfiguredIndexersList(indexers) {
function displayUnconfiguredIndexersList(indexers) {
var indexersTemplate = Handlebars.compile($("#unconfigured-indexer-table").html());
var indexersTable = $(indexersTemplate({ indexers: indexers }));
var indexersTable = $(indexersTemplate({ indexers: indexers, total_unconfigured_indexers: indexers.length }));
indexersTable.find('table').DataTable(
{
"pageLength": 100,

View File

@ -214,8 +214,7 @@
</tbody>
<tfoot>
<tr>
<td></td>
<td></td>
<td colspan="2">Total configured indexers: {{total_configured_indexers}}</td>
</tr>
</tfoot>
</table>
@ -249,10 +248,7 @@
</tbody>
<tfoot>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td colspan="4">Total unconfigured indexers: {{total_unconfigured_indexers}}</td>
</tr>
</tfoot>
</table>