Author: jzurbano Date: Mon May 31 09:44:53 2010 New Revision: 949697 URL: http://svn.apache.org/viewvc?rev=949697&view=rev Log: [CONTINUUM-2521] builds report page * set 'endDate' time to 23h 59min 59s so it would be possible to search builds of current date * changed conditions to when-otherwise instead of ifs in displaying 'projectBuilds' * adjusted formats Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java?rev=949697&r1=949696&r2=949697&view=diff ============================================================================== --- continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java (original) +++ continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java Mon May 31 09:44:53 2010 @@ -21,6 +21,7 @@ package org.apache.continuum.web.action; import java.text.ParseException; import java.util.ArrayList; +import java.util.Calendar; import java.util.Date; import java.util.LinkedHashMap; import java.util.List; @@ -115,7 +116,15 @@ public class ViewBuildsReportAction if ( !StringUtils.isEmpty( endDate ) ) { - toDate = DateUtils.parseDate( endDate, datePatterns ).getTime(); + Date toDateInDateFormat = DateUtils.parseDate( endDate, datePatterns ); + + Calendar toDateCal = Calendar.getInstance(); + toDateCal.setTime( toDateInDateFormat ); + toDateCal.set( Calendar.HOUR_OF_DAY, 23 ); + toDateCal.set( Calendar.MINUTE, 59 ); + toDateCal.set( Calendar.SECOND, 59 ); + + toDate = toDateCal.getTimeInMillis(); } } catch ( ParseException e ) Modified: continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp?rev=949697&r1=949696&r2=949697&view=diff ============================================================================== --- continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp (original) +++ continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp Mon May 31 09:44:53 2010 @@ -33,8 +33,8 @@ @@ -72,114 +72,116 @@

Results

- - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - 0 - 10 - - - ${(numPages - 1) - 10} - ${numPages - 1} - - - ${page - 5} - ${page + 5} - - - - - 0 - ${numPages - 1} - - + + + + + + + - - - - - - - - - - - - - - ${i + 1} + + + + + 0 + 10 + + + ${(numPages - 1) - 10} + ${numPages - 1} + + + ${page - 5} + ${page + 5} + + - - ${i + 1} - - - + + 0 + ${numPages - 1} + + - - - - - - + + + + + + + + + + + + + + ${i + 1} + + + ${i + 1} + + + + + + - - - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + +

+
+
- \ No newline at end of file +