Comparison

plugins/mod_admin_shell.lua @ 11946:c0a01e5f5656

mod_admin_shell: Reduce width of 'Status' column 'unavailable' was the longest possibility, dropping it probably differentiates available from unavailable more, in less space.
author Kim Alvefur <zash@zash.se>
date Fri, 26 Nov 2021 11:40:48 +0100
parent 11945:142b9c4010fe
child 11949:ae4bc56f18e0
comparison
equal deleted inserted replaced
11945:142b9c4010fe 11946:c0a01e5f5656
714 mapper = function(ip) if ip then return ip:find(":") and "IPv6" or "IPv4"; end end; 714 mapper = function(ip) if ip then return ip:find(":") and "IPv6" or "IPv4"; end end;
715 }; 715 };
716 ip = { title = "IP address"; width = 40; key = "ip" }; 716 ip = { title = "IP address"; width = 40; key = "ip" };
717 status = { 717 status = {
718 title = "Status"; 718 title = "Status";
719 width = 11; 719 width = 6;
720 key = "presence"; 720 key = "presence";
721 mapper = function(p) 721 mapper = function(p)
722 if not p then return "unavailable"; end 722 if not p then return ""; end
723 return p:get_child_text("show") or "available"; 723 return p:get_child_text("show") or "online";
724 end; 724 end;
725 }; 725 };
726 secure = { 726 secure = {
727 title = "Security"; 727 title = "Security";
728 key = "conn"; 728 key = "conn";