Author: sebb
Date: Sun Jul  6 11:42:28 2025
New Revision: 1926995

URL: http://svn.apache.org/viewvc?rev=1926995&view=rev
Log:
Always show recent releases and link to manage them

Modified:
    
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/statistics_generator.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js?rev=1926995&r1=1926994&r2=1926995&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 
Sun Jul  6 11:42:28 2025
@@ -951,7 +951,7 @@ function statistics_health(data) {
 
 function statistics_releases(data) {
     let three_months_ago = moment().subtract(3, 'months');
-    let txt = "";
+    let txt = "<h6>Recent releases:</h6>";
 
     // Releases
     let rtxt = "";
@@ -983,13 +983,15 @@ function statistics_releases(data) {
       }
     }
     if (rtxt != '') {
-        rtxt = "<h6>Recent releases: </h6><ul>" + rtxt + "</ul>";
-        rtxt += new HTML('a', {
-            target: '_blank',
-            href: '/addrelease.html?%s'.format(project)
-        }, 'Manage release data').outerHTML;
+        rtxt = "<ul>" + rtxt + "</ul>";
+    } else {
+        rtxt = '<ul>None</ul>'
     }
 
+    rtxt += new HTML('a', {
+        target: '_blank',
+        href: '/addrelease.html?%s'.format(project)
+    }, 'Manage release data').outerHTML;
 
     // Put it all together
     txt += rtxt;

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=1926995&r1=1926994&r2=1926995&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sun Jul  6 
11:42:28 2025
@@ -3171,7 +3171,7 @@ function statistics_health(data) {
 
 function statistics_releases(data) {
     let three_months_ago = moment().subtract(3, 'months');
-    let txt = "";
+    let txt = "<h6>Recent releases:</h6>";
 
     // Releases
     let rtxt = "";
@@ -3203,13 +3203,15 @@ function statistics_releases(data) {
       }
     }
     if (rtxt != '') {
-        rtxt = "<h6>Recent releases: </h6><ul>" + rtxt + "</ul>";
-        rtxt += new HTML('a', {
-            target: '_blank',
-            href: '/addrelease.html?%s'.format(project)
-        }, 'Manage release data').outerHTML;
+        rtxt = "<ul>" + rtxt + "</ul>";
+    } else {
+        rtxt = '<ul>None</ul>'
     }
 
+    rtxt += new HTML('a', {
+        target: '_blank',
+        href: '/addrelease.html?%s'.format(project)
+    }, 'Manage release data').outerHTML;
 
     // Put it all together
     txt += rtxt;


Reply via email to