continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r380281 - in /maven/continuum/branches/continuum-1.0.x: continuum-model/src/main/mdo/continuum.mdo continuum-web/src/main/resources/templates/screens/ProjectBuild.vm
Date Fri, 24 Feb 2006 00:20:45 GMT
Author: evenisse
Date: Thu Feb 23 16:20:43 2006
New Revision: 380281

URL: http://svn.apache.org/viewcvs?rev=380281&view=rev
Log:
[CONTINUUM-603] Fix date parsing in changeset in buil result screen

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-model/src/main/mdo/continuum.mdo
    maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/ProjectBuild.vm

Modified: maven/continuum/branches/continuum-1.0.x/continuum-model/src/main/mdo/continuum.mdo
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-model/src/main/mdo/continuum.mdo?rev=380281&r1=380280&r2=380281&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-model/src/main/mdo/continuum.mdo (original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-model/src/main/mdo/continuum.mdo Thu
Feb 23 16:20:43 2006
@@ -559,6 +559,16 @@
 
                 return false;
             }
+
+            public java.util.Date getDateAsDate()
+            {
+                if ( date > 0 )
+                {
+                    return new java.util.Date( date );
+                }
+
+                return null;
+            }
           ]]></code>
         </codeSegment>
       </codeSegments>

Modified: maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/ProjectBuild.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/ProjectBuild.vm?rev=380281&r1=380280&r2=380281&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/ProjectBuild.vm
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/ProjectBuild.vm
Thu Feb 23 16:20:43 2006
@@ -1,4 +1,4 @@
-$page.setTitle( "Continuum - ${project.name} Build at $date.format('medium',$build.startTime)"
)
+$page.setTitle( "Continuum - Continuum Web Build at $date.format('medium',$build.startTime)"
)
 
 #if ( $data.user )
   #set ( $c1user = $continuum.getUser( $data.user.userId ) )
@@ -68,7 +68,7 @@
       #foreach ( $changeSet in $build.scmResult.changes )
       <tr class="a">
         <td>#if ($changeSet.author) $changeSet.author #end</td>
-        <td>#if ($changeSet.date > 0) $date.format('medium',$changeSet.date) #end</td>
+        <td>#if ($changeSet.dateAsDate) $date.format('medium',$changeSet.dateAsDate)
#end</td>
         <td>#if ($changeSet.comment) $changeSet.comment #end</td>
         <td>
           #foreach ( $file in $changeSet.files )



Mime
View raw message