From 05aefc85457546a3d062fa211da3dc52955b56cd Mon Sep 17 00:00:00 2001
From: Steffen Ritter
Date: Fri, 15 Oct 2021 16:49:30 +0200
Subject: [statistics] Add additional option to show sysinfos
fixes: #3657
---
.../statistics/templates/clientlist.html | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/modules-available/statistics/templates/clientlist.html b/modules-available/statistics/templates/clientlist.html
index af349437..67e1a56f 100644
--- a/modules-available/statistics/templates/clientlist.html
+++ b/modules-available/statistics/templates/clientlist.html
@@ -170,6 +170,11 @@
data-target="#mac-list">
{{lang_uuid}}
+
+
+ {{lang_fullInfo}}
+
{{#rebootcontrol}}
@@ -302,14 +307,19 @@ document.addEventListener("DOMContentLoaded", function () {
$fn();
});
$('.list-btn').click(function() {
- var what = $(this).data('what');
+ var what = $(this).data('what').split(" ");
var $el = $('#mac-list-content');
$el.empty();
var result = '';
- var num = $('.machine').has('input[type=checkbox]:checked').find('.' + what).each(function() {
- var text = this.innerText;
- if (what === 'mac') text = text.replace(/-/g, ':');
- result += text + "\n";
+ var num = $('.machine').has('input[type=checkbox]:checked').each(function(index, element) {
+ what.forEach(function (w) {
+ $(element).find('.' + w).each(function() {
+ var text = this.innerText;
+ if (w === 'mac') text = text.replace(/-/g, ':');
+ result += text + "\t";
+ });
+ });
+ result += "\n";
}).length;
$el.text(result).prop('rows', Math.min(24, Math.max(5, num)));
});
--
cgit v1.2.3-55-g7522