Author: humbedooh
Date: Sun Mar  8 16:24:36 2015
New Revision: 1665048

URL: http://svn.apache.org/r1665048
Log:
- wrap to 77 chars
- better formatting for ML statistics

Modified:
    comdev/reporter.apache.org/site/render.js

Modified: comdev/reporter.apache.org/site/render.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/render.js?rev=1665048&r1=1665047&r2=1665048&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/render.js (original)
+++ comdev/reporter.apache.org/site/render.js Sun Mar  8 16:24:36 2015
@@ -157,7 +157,7 @@ function addLine(pmc, line) {
                var out = ""
                for (i in words) {
                        len += words[i].replace(/<.+?>/, "").length + (i == 
words.length - 1 ? 0 : 1)
-                       if (len >= 80) {
+                       if (len >= 78) {
                                out += "\n   "
                                len = words[i].replace(/<.+?>/, "").length + (i 
== words.length - 1 ? 0 : 1)
                        }
@@ -412,17 +412,21 @@ function renderFrontPage(json) {
 
                                add = ""
                                if (json.delivery[pmc] && 
json.delivery[pmc][lookup]) {
-                                       add = ":\n    " + 
json.delivery[pmc][lookup].quarterly[0] + " emails sent to list (" + 
json.delivery[pmc][lookup].quarterly[1] + " in previous quarter)";
+                                       add = ":\n    - " + 
json.delivery[pmc][lookup].quarterly[0] + " emails sent to list (" + 
json.delivery[pmc][lookup].quarterly[1] + " in previous quarter)";
                                }
                                var text = "Currently: " + total + " 
subscribers <font color='green'>(up " + diff + " in the last 3 months)</font>"
                                if (diff < 0) {
                                        text = "Currently: " + total + " 
subscribers <font color='red'>(down " + diff + " in the last 3 months)</font>"
                                        if (d[1] != "private" && d[1] != 
"security" && d[1] != "commits") {
-                                               addLine(pmc, " - " + mlname + 
": " + total + " subscribers (down " + diff + " in the last 3 months)" + add)
+                                               addLine(pmc, " - " + mlname + 
": ")
+                                               addLine(pmc, "    - " + total + 
" subscribers (down " + diff + " in the last 3 months)" + add)
+                                               addLine(pmc)
                                        }
                                } else {
                                        if (d[1] != "private" && d[1] != 
"security" && d[1] != "commits") {
-                                               addLine(pmc, " - " + mlname + 
": " + total + " subscribers (up " + diff + " in the last 3 months)" + add)
+                                               addLine(pmc, " - " + mlname + 
": ")
+                                               addLine(pmc, "    - " + total + 
" subscribers (up " + diff + " in the last 3 months)" + add)
+                                               addLine(pmc)
                                        }
                                }
 
@@ -460,17 +464,21 @@ function renderFrontPage(json) {
 
                                        add = ""
                                        if (json.delivery[pmc] && 
json.delivery[pmc][lookup]) {
-                                               add = ":\n    " + 
json.delivery[pmc][lookup].quarterly[0] + " emails sent to list (" + 
json.delivery[pmc][lookup].quarterly[1] + " in previous quarter)";
+                                               add = ":\n    - " + 
json.delivery[pmc][lookup].quarterly[0] + " emails sent to list (" + 
json.delivery[pmc][lookup].quarterly[1] + " in previous quarter)";
                                        }
                                        var text = "Currently: " + total + " 
subscribers <font color='green'>(up " + diff + " in the last 3 months)</font>"
                                        if (diff < 0) {
                                                text = "Currently: " + total + 
" subscribers <font color='red'>(down " + diff + " in the last 3 months)</font>"
                                                if (d[1] != "private" && d[1] 
!= "security" && d[1] != "commits") {
-                                                       addLine(pmc, " - " + 
mlname + ": " + total + " subscribers (down " + diff + " in the last 3 months)" 
+ add)
+                                                       addLine(pmc, " - " + 
mlname + ": ")
+                                                       addLine(pmc, "    - " + 
total + " subscribers (down " + diff + " in the last 3 months)" + add)
+                                                       addLine(pmc)
                                                }
                                        } else {
                                                if (d[1] != "private" && d[1] 
!= "security" && d[1] != "commits") {
-                                                       addLine(pmc, " - " + 
mlname + ": " + total + " subscribers (up " + diff + " in the last 3 months)" + 
add)
+                                                       addLine(pmc, " - " + 
mlname + ": ")
+                                                       addLine(pmc, "    - " + 
total + " subscribers (up " + diff + " in the last 3 months)" + add)
+                                                       addLine(pmc)
                                                }
                                        }
 


Reply via email to