# HG changeset patch # User Aleksej Bobylev # Date 1430234383 -10800 # Node ID 098e260f32cdadf2b86b43f69a594dcaa4d0754f # Parent c65bbbb1b0e1927af35da72de2599965a48a76af settings.cgi: hide empty output of the `who` and `last` (in the Live CD/USB mode). diff -r c65bbbb1b0e1 -r 098e260f32cd settings.cgi --- a/settings.cgi Mon Apr 27 00:16:35 2015 +0200 +++ b/settings.cgi Tue Apr 28 18:19:43 2015 +0300 @@ -286,19 +286,27 @@ +EOT - + # `who` output is empty in the Live mode + if [ -n "$(who)" ]; then + cat <
$(_ 'Current user sessions')
$(who)
+EOT + fi - + # `last` output is empty (just header) in the Live mode + if [ "$(last | wc -l)" != "1" ]; then + cat <
$(_ 'Last user sessions')
$(last)
EOT + fi ;; diff -r c65bbbb1b0e1 -r 098e260f32cd styles/default/base.css --- a/styles/default/base.css Mon Apr 27 00:16:35 2015 +0200 +++ b/styles/default/base.css Tue Apr 28 18:19:43 2015 +0300 @@ -139,7 +139,7 @@ display: table; width: 100%; border-radius: 0.3rem 0.3rem 0 0; font-weight: bold; font-size: 1.1rem;/* line-height: 0;*/ - text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.5); + text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.2); overflow: auto; /* provide break after floated objects */ vertical-align: baseline; }