community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1664341 - /comdev/reporter.apache.org/site/addrelease.html
Date Thu, 05 Mar 2015 13:30:20 GMT
Author: humbedooh
Date: Thu Mar  5 13:30:19 2015
New Revision: 1664341

URL: http://svn.apache.org/r1664341
Log:
Add some tips

Modified:
    comdev/reporter.apache.org/site/addrelease.html

Modified: comdev/reporter.apache.org/site/addrelease.html
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/addrelease.html?rev=1664341&r1=1664340&r2=1664341&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/addrelease.html (original)
+++ comdev/reporter.apache.org/site/addrelease.html Thu Mar  5 13:30:19 2015
@@ -21,7 +21,8 @@
     <b>Project:</b></b><input type="text" name="project" value="" readonly="readonly"
id="project"/><br/>
     <b>Full version name:</b></b><input type="text" name="version" value=""
placeholder="1.2.0" id="version"/><br/>
     <b>Date of release (YYYY-MM-DD):</b></b><input type="text" name="xdate"
value="" placeholder="YYYY-MM-DD" id="xdate"/><br/>
-    <input type="submit" value="Add release data"/>
+    <input type="submit" value="Add release data"/><br>
+    <small>Need to remove a release? Enter the version of the release and 1970-01-01
as the date then!</small>
    </form>
 </div>
 <div id="footer">
@@ -59,8 +60,11 @@
       var x = 0;
       obj.innerHTML += "<h3>Already registered releases:</h3>"
       for (version in json) {
-        obj.innerHTML += "- " + version + ": " + new Date(json[version]*1000).toDateString()
+ "<br/>"
-        x++;
+        if (new Date(json[version]*1000) > new Date(1999,1,1)) {
+          obj.innerHTML += "- " + version + ": " + new Date(json[version]*1000).toDateString()
+ "<br/>"
+          x++;
+        }
+        
       }
       if (x == 0) {
         obj.innerHTML += "No releases registered yet"



Mime
View raw message