From: Costa Tsaousis (ktsaou) Date: Sat, 27 Aug 2016 18:38:11 +0000 (+0300) Subject: aesthetic changes to alarms modal and alarms emails X-Git-Tag: v1.3.0~4^2 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0712458086a2de146fe86944945e736a5a4af3be;p=netdata.git aesthetic changes to alarms modal and alarms emails --- diff --git a/plugins.d/alarm-email.sh b/plugins.d/alarm-email.sh index 25ed6f77..78c79ccd 100755 --- a/plugins.d/alarm-email.sh +++ b/plugins.d/alarm-email.sh @@ -34,7 +34,7 @@ non_clear_duration="${10}" # the total duration in seconds this is non-clear units="${11}" # the units of the value info="${12}" # a short description of the alarm -[ ! -z "${info}" ] && info="
${info}" +[ ! -z "${info}" ] && info="
${info}
" # get the system hostname hostname="${NETDATA_HOSTNAME}" @@ -204,7 +204,7 @@ Content-Type: text/html - ${alarm}${info} + ${alarm}${info} Alarm diff --git a/web/index.html b/web/index.html index 1f602692..3e6c2219 100644 --- a/web/index.html +++ b/web/index.html @@ -2449,7 +2449,7 @@ function alarmsUpdateModal() { active_family_added = true; active += '

' + x + '

'; } - active += '' + alarm.info + ''; + active += '' + alarm.info + '' + ((typeof alarm.warn !== 'undefined')?(''):'') + ((typeof alarm.crit !== 'undefined')?(''):'') + '
 warning when ' + alarm.warn + '
 critical when ' + alarm.crit + '
 source ' + alarm.source + '
'; count_active++; } @@ -2457,7 +2457,7 @@ function alarmsUpdateModal() { all_family_added = true; all += '

' + x + '

'; } - all += '' + alarm.info + ''; + all += '' + alarm.info + '' + ((typeof alarm.warn !== 'undefined')?(''):'') + ((typeof alarm.crit !== 'undefined')?(''):'') + '
 warning when ' + alarm.warn + '
 critical when ' + alarm.crit + '
 source ' + alarm.source + '
'; count_all++; } }