community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1663826 - /comdev/reporter.apache.org/site/render.js
Date Tue, 03 Mar 2015 23:01:01 GMT
Author: humbedooh
Date: Tue Mar  3 23:01:00 2015
New Revision: 1663826

URL: http://svn.apache.org/r1663826
Log:
fix version stats and add JIRA fetching link

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=1663826&r1=1663825&r2=1663826&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/render.js (original)
+++ comdev/reporter.apache.org/site/render.js Tue Mar  3 23:01:00 2015
@@ -335,7 +335,7 @@ function renderFrontPage(json) {
 	
 	if (nr == 0) {
 	    if (lr) {
-		releases.innerHTML += "&rarr; " + "<b>Latest release was " + version + ", released
on </b>" + new Date(lrn*1000).toDateString() + "<br/>"
+		releases.innerHTML += "&rarr; " + "<b>Latest release was " + lr + ", released
on </b>" + new Date(lrn*1000).toDateString() + "<br/>"
 		addLine(pmc, " - Last release was " + version + " on " + new Date(lrn*1000).toDateString())
 	    } else {
 		releases.innerHTML += "No release data could be found.<br/>"
@@ -343,7 +343,7 @@ function renderFrontPage(json) {
 	    }
 	}
 	releases.innerHTML += "<i>(A total of " + (tr-nr) + " older release(s) were found
for " + pmc + " in our db)</i><br/>"
-	releases.innerHTML += "<br/><a href='addrelease.html?" + pmc + "'>Add a release</a><br/>"
+	releases.innerHTML += "<br/><a href='addrelease.html?" + pmc + "'>Add a release</a>
- <a href='javascript:void(0);' onclick=\"fetchJIRA('" + pmc + "');\">Fetch releases
from JIRA</a><br/>"
 	
 	if (tr > 0) {
 		var div = renderReleaseChart(json.releases[pmc], pmc, releases);
@@ -644,3 +644,8 @@ function renderReleaseChart(releases, na
     chart.draw(data, options);
     return chartDiv
 }
+
+function fetchJIRA(pmc) {
+	var jiraname = window.prompt("Please enter the JIRA project name (e.g. TS): ")
+	GetAsyncJSON("/jiraversions.py?project=" + pmc + "&jiraname=" + jiraname, null, function()
{ alert("Information has been fetched, please reload this page!"); })
+}
\ No newline at end of file



Mime
View raw message