Author: humbedooh Date: Tue Aug 6 16:57:50 2019 New Revision: 1864546 URL: http://svn.apache.org/viewvc?rev=1864546&view=rev Log: add in joan's suggestions on always showing dev@ lists activity
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864546&r1=1864545&r2=1864546&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original) +++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Tue Aug 6 16:57:50 2019 @@ -216,10 +216,10 @@ function health_tips(data) { if (isNaN(pct_change) || !isFinite(pct_change)) { pct_change_txt = 'big'; } - if (pct_change > 25 && mldata.quarterly[0] > 5) { + if ((pct_change > 25 && mldata.quarterly[0] > 5) || (pct_change > 0 && a[2] == 'dev')) { txt += "<li style='color: #080'>%s had a %s increase in traffic in the past quarter (%u emails compared to %u)</li>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); } - else if (pct_change < -25 && mldata.quarterly[1] > 5) { + if ((pct_change < -25 && mldata.quarterly[1] > 5) || (pct_change <= 0 && a[2] == 'dev')) { txt += "<li style='color: #800'>%s had a %s decrease in traffic in the past quarter (%u emails compared to %u)</li>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); } } Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js?rev=1864546&r1=1864545&r2=1864546&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js (original) +++ comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js Tue Aug 6 16:57:50 2019 @@ -153,9 +153,9 @@ function statistics_health(data) { if (isNaN(pct_change) || !isFinite(pct_change)) { pct_change_txt = 'big'; } - if (pct_change >= 0 && mldata.quarterly[0] > 10) { + if (pct_change >= 0 && (mldata.quarterly[0] > 10 || a[2] == 'dev')) { txt += "<h6 style='color: #080'>%s had a %s increase in traffic in the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); - } else if (pct_change < 0 && mldata.quarterly[1] > 10) { + } else if (pct_change < 0 && (mldata.quarterly[1] > 10 || a[2] == 'dev')) { txt += "<h6 style='color: #800'>%s had a %s decrease in traffic in the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); } Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864546&r1=1864545&r2=1864546&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original) +++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Tue Aug 6 16:57:50 2019 @@ -1401,10 +1401,10 @@ function health_tips(data) { if (isNaN(pct_change) || !isFinite(pct_change)) { pct_change_txt = 'big'; } - if (pct_change > 25 && mldata.quarterly[0] > 5) { + if ((pct_change > 25 && mldata.quarterly[0] > 5) || (pct_change > 0 && a[2] == 'dev')) { txt += "<li style='color: #080'>%s had a %s increase in traffic in the past quarter (%u emails compared to %u)</li>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); } - else if (pct_change < -25 && mldata.quarterly[1] > 5) { + if ((pct_change < -25 && mldata.quarterly[1] > 5) || (pct_change <= 0 && a[2] == 'dev')) { txt += "<li style='color: #800'>%s had a %s decrease in traffic in the past quarter (%u emails compared to %u)</li>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); } } @@ -2252,9 +2252,9 @@ function statistics_health(data) { if (isNaN(pct_change) || !isFinite(pct_change)) { pct_change_txt = 'big'; } - if (pct_change >= 0 && mldata.quarterly[0] > 10) { + if (pct_change >= 0 && (mldata.quarterly[0] > 10 || a[2] == 'dev')) { txt += "<h6 style='color: #080'>%s had a %s increase in traffic in the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); - } else if (pct_change < 0 && mldata.quarterly[1] > 10) { + } else if (pct_change < 0 && (mldata.quarterly[1] > 10 || a[2] == 'dev')) { txt += "<h6 style='color: #800'>%s had a %s decrease in traffic in the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, mldata.quarterly[0], mldata.quarterly[1]); }