diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-26 11:40:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-26 11:40:48 +0100 |
commit | 51c1c97fe262630c37c89579727512bbc52f1249 (patch) | |
tree | f2e85f8133d119a36074f2505ee93657a5f1bd34 | |
parent | 2ec4d4a83db9aca9fc0fabf4a243db8aa3e20071 (diff) | |
download | prosody-51c1c97fe262630c37c89579727512bbc52f1249.tar.gz prosody-51c1c97fe262630c37c89579727512bbc52f1249.zip |
mod_admin_shell: Reduce width of 'Status' column
'unavailable' was the longest possibility, dropping it probably
differentiates available from unavailable more, in less space.
-rw-r--r-- | plugins/mod_admin_shell.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 75e36e0e..83891c04 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -716,11 +716,11 @@ local available_columns = { ip = { title = "IP address"; width = 40; key = "ip" }; status = { title = "Status"; - width = 11; + width = 6; key = "presence"; mapper = function(p) - if not p then return "unavailable"; end - return p:get_child_text("show") or "available"; + if not p then return ""; end + return p:get_child_text("show") or "online"; end; }; secure = { |