UPN Column Width - List View (#7721)
* Add files via upload * Add files via upload
stephannn committed
Apr 14, 2026 at 23:38 UTC
d4156ef60fa65e9f92623fbfe78026714dc86c80
2 files changed
+20
-4
views/default.handlebars
+10
-2
@@ -4708,7 +4708,11 @@
4708
if (deviceViewSettings.devsCols.indexOf('lastbootuptime') >= 0) { colums += '<th style=color:gray;width:120px>' + "Last Boot Up Time"; }
4709
if (deviceViewSettings.devsCols.indexOf('idletime') >= 0) { colums += '<th style=color:gray;width:100px title="' + "Updated every 5 Minutes" + '">' + "Idle Time"; }
4710
if (deviceViewSettings.devsCols.indexOf('links') >= 0) { colums += '<th style=color:gray;width:120px>' + "Links"; }
4711
- if (deviceViewSettings.devsCols.indexOf('user') >= 0) { colums += '<th style=color:gray;width:120px>' + "User"; }
4711
+ if(features3 & 0x00000002){
4712
+ if (deviceViewSettings.devsCols.indexOf('user') >= 0) { colums += '<th style=color:gray;width:180px>' + "User"; }
4713
+ } else {
4714
+ if (deviceViewSettings.devsCols.indexOf('user') >= 0) { colums += '<th style=color:gray;width:120px>' + "User"; }
4715
+ }
4716
if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { colums += '<th style=color:gray;width:120px>' + "Address"; }
4717
if (deviceViewSettings.devsCols.indexOf('conn') >= 0) { colums += '<th style=color:gray;width:100px>' + "Connectivity"; }
4718
if (deviceViewSettings.devsCols.indexOf('amthost') >= 0) { colums += '<th style=color:gray;width:100px>' + "AMT Host"; }
@@ -5259,7 +5263,11 @@
5263
if (i > 0) { su = u.substring(i + 1); }
5264
var upn = node.upnusers && node.upnusers[0];
5265
su = EscapeHtml((features3 & 0x00000002) && upn != null ? upn : su);
5262
- if (su.length > 15) { su = su.substring(0, 14) + '…'; }
5266
+ if(features3 & 0x00000002){
5267
+ if (su.length > 29) { su = su.substring(0, 28) + '…'; }
5268
+ } else {
5269
+ if (su.length > 15) { su = su.substring(0, 14) + '…'; }
5270
+ }
5271
if (node.lusers && node.lusers.length > 0) {
5272
return addKeyLinkConditional(su, EscapeHtml(u) + ' (' + "Locked" + ')', (node.lusers && node.lusers.indexOf(u) >= 0));
5273
} else {
views/default3.handlebars
+10
-2
@@ -5406,7 +5406,11 @@
5406
if (deviceViewSettings.devsCols.indexOf('lastbootuptime') >= 0) { colums += '<th style=width:120px>' + "Last Boot Up Time"; }
5407
if (deviceViewSettings.devsCols.indexOf('idletime') >= 0) { colums += '<th style=width:100px title="' + "Updated every 5 Minutes" + '">' + "Idle Time"; }
5408
if (deviceViewSettings.devsCols.indexOf('links') >= 0) { colums += '<th style=width:120px>' + "Links"; }
5409
- if (deviceViewSettings.devsCols.indexOf('user') >= 0) { colums += '<th style=width:120px>' + "User"; }
5409
+ if(features3 & 0x00000002){
5410
+ if (deviceViewSettings.devsCols.indexOf('user') >= 0) { colums += '<th style=width:180px>' + "User"; }
5411
+ } else {
5412
+ if (deviceViewSettings.devsCols.indexOf('user') >= 0) { colums += '<th style=width:120px>' + "User"; }
5413
+ }
5414
if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { colums += '<th style=width:120px>' + "Address"; }
5415
if (deviceViewSettings.devsCols.indexOf('conn') >= 0) { colums += '<th style=width:100px>' + "Connectivity"; }
5416
if (deviceViewSettings.devsCols.indexOf('amthost') >= 0) { colums += '<th style=width:100px>' + "AMT Host"; }
@@ -5977,7 +5981,11 @@
5981
if (i > 0) { su = u.substring(i + 1); }
5982
var upn = node.upnusers && node.upnusers[0];
5983
su = EscapeHtml((features3 & 0x00000002) && upn != null ? upn : su);
5980
- if (su.length > 15) { su = su.substring(0, 14) + '…'; }
5984
+ if(features3 & 0x00000002){
5985
+ if (su.length > 29) { su = su.substring(0, 28) + '…'; }
5986
+ } else {
5987
+ if (su.length > 15) { su = su.substring(0, 14) + '…'; }
5988
+ }
5989
if (node.lusers && node.lusers.length > 0) {
5990
return addKeyLinkConditional(su, EscapeHtml(u) + ' (' + "Locked" + ')', (node.lusers && node.lusers.indexOf(u) >= 0));
5991
} else {