SVN: toys/cvsstats/web/WebContent/index.jsp

pawelz pawelz at pld-linux.org
Sun May 2 01:00:58 CEST 2010


Author: pawelz
Date: Sun May  2 01:00:57 2010
New Revision: 11363

Modified:
   toys/cvsstats/web/WebContent/index.jsp
Log:
- simple form to change time period


Modified: toys/cvsstats/web/WebContent/index.jsp
==============================================================================
--- toys/cvsstats/web/WebContent/index.jsp	(original)
+++ toys/cvsstats/web/WebContent/index.jsp	Sun May  2 01:00:57 2010
@@ -27,7 +27,15 @@
 <link rel="stylesheet" type="text/css" href="stats.css" />
 </head>
 <body>
-<h1>Stats for <%=s.getInterval().getStart().toString() %> - <%=s.getInterval().getEnd().toString() %></h1>
+<h1>Stats for period:</h1>
+	From: <%=s.getInterval().getStart().toString() %><br/>
+	To: <%=s.getInterval().getEnd().toString() %><br/>
+<form method="GET" action="index.jsp">
+	Enter values as number of seconds since 1970-01-01 00:00:00. For example output of <tt>date -d'2010-05-01 00:00:00' +%s</tt> command.<br/>
+	<label for="from">From:</label><input type="text" id="from" name="from"/><br/>
+	<label for="to">To:</label><input type="text" id="to" name="to"/><br/>
+	<input type="submit" value="Change"/>
+</form>
 <h1>Basic stats</h1>
 <p>
 Number of commiters: <%=s.simpleQuery("SELECT COUNT(DISTINCT author) FROM commits @WHERE@") %><br />


More information about the pld-cvs-commit mailing list