Software /
code /
prosody
Changeset
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 |
parents | 11945:142b9c4010fe |
children | 11947:073e53b72792 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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 = {