Última actividad 1 month ago

nuno revisó este gist 1 month ago. Ir a la revisión

1 file changed, 15 insertions

gistfile1.txt(archivo creado)

@@ -0,0 +1,15 @@
1 + 22: local is_blocked="${1:-false}" is_restricted="${2:-false}" status="${3:-}"
2 + 23: if [[ "$is_blocked" == "true" && "$status" == "online"* ]]; then
3 + 24: echo "\033[1;31m"
4 + 25: elif [[ "$is_blocked" == "true" ]]; then
5 + 39:function ui::peer::_row_color() {
6 + 40: local is_blocked="${1:-false}" is_restricted="${2:-false}" status="${3:-}"
7 + 45: if [[ "$is_blocked" == "true" ]]; then
8 + 53: if [[ "$is_blocked" == "true" ]]; then
9 + 54: echo "\033[1;31m" # bold red — blocked active
10 + 67:function ui::peer::list_row_compact() {
11 + 73: is_blocked="${8:-false}" is_restricted="${9:-false}"
12 + 75: local row_color
13 + 76: row_color=$(ui::peer::_row_color "$is_blocked" "$is_restricted" "$status")
14 + 79: status_color=$(ui::peer::status_color "$is_blocked" "$is_restricted" "$status")
15 + 97: if [[ -n "$row_color" ]]; then
Siguiente Anterior