Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Fri Nov 26 11:39:13 2021 +0100 +++ b/plugins/mod_admin_shell.lua Fri Nov 26 11:40:48 2021 +0100 @@ -716,11 +716,11 @@ 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 = {