community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From he...@apache.org
Subject svn commit: r1822259 - in /comdev/reporter.apache.org/trunk/site/js: render-hppdev.js render.js
Date Fri, 26 Jan 2018 09:24:03 GMT
Author: henkp
Date: Fri Jan 26 09:24:03 2018
New Revision: 1822259

URL: http://svn.apache.org/viewvc?rev=1822259&view=rev
Log:
fix text

Modified:
    comdev/reporter.apache.org/trunk/site/js/render-hppdev.js
    comdev/reporter.apache.org/trunk/site/js/render.js

Modified: comdev/reporter.apache.org/trunk/site/js/render-hppdev.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/render-hppdev.js?rev=1822259&r1=1822258&r2=1822259&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/render-hppdev.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/render-hppdev.js Fri Jan 26 09:24:03 2018
@@ -856,6 +856,7 @@ function renderChecker(pmc) {
     var help = my_url(meta['uri_help']) ;
     var proj = my_url(base + data['uri_proj']) ;
     var dist = my_url('https://www.apache.org/dist/') ;
+    var etxt = ( errs == 1 ? 'error' : 'errors' ) ;
     var summ = '' ;
     for ( idx in data['summary'] ) {
       summ += ( '<li>' + data['summary'][idx] + "</li>\n" ) ;
@@ -869,7 +870,7 @@ function renderChecker(pmc) {
     obj.innerHTML += 'For help see ' + help + "<br>\n" ;
     obj.innerHTML += 'Last update : ' + meta['refreshed']['date'] + ' ; ' + ival2str(ival)
+ ' ago [' + ival + 's].' ;
     addLine( pmc, "## /dist/ errors: " + errs ) ;
-    addLine( pmc, " - <font color='red'>TODO - Please fix the errors or explain why
you can't.</font>" ) ;
+    addLine( pmc, " - <font color='red'>TODO - Please fix the " + etxt " or explain
why you can't.</font>" ) ;
     addLine( pmc ) ;
 }
 

Modified: comdev/reporter.apache.org/trunk/site/js/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/render.js?rev=1822259&r1=1822258&r2=1822259&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/render.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/render.js Fri Jan 26 09:24:03 2018
@@ -856,6 +856,7 @@ function renderChecker(pmc) {
     var help = my_url(meta['uri_help']) ;
     var proj = my_url(base + data['uri_proj']) ;
     var dist = my_url('https://www.apache.org/dist/') ;
+    var etxt = ( errs == 1 ? 'error' : 'errors' ) ;
     var summ = '' ;
     for ( idx in data['summary'] ) {
       summ += ( '<li>' + data['summary'][idx] + "</li>\n" ) ;
@@ -869,7 +870,7 @@ function renderChecker(pmc) {
     obj.innerHTML += 'For help see ' + help + "<br>\n" ;
     obj.innerHTML += 'Last update : ' + meta['refreshed']['date'] + ' ; ' + ival2str(ival)
+ ' ago [' + ival + 's].' ;
     addLine( pmc, "## /dist/ errors: " + errs ) ;
-    addLine( pmc, " - <font color='red'>TODO - Please fix the errors or explain why
you can't.</font>" ) ;
+    addLine( pmc, " - <font color='red'>TODO - Please fix the " + etxt " or explain
why you can't.</font>" ) ;
     addLine( pmc ) ;
 }
 



Mime
View raw message