Fix the duration on Build pages

[?]
Apr 27, 2012, 8:54 AM
L2BP7OFXVJJ7OQUBBO6KL3O2JOGNKC6H6N6CAZ4QTPBGKAA5GZ4AC

Dependencies

  • [2] HPEG2RHV Merge the BuildResultInfo table into the Builds table
  • [3] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [4] 45ESKY6T * hydra: show finish time on build status overview
  • [5] 3SQCOHZN * minor performance tweaks
  • [6] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [7] DSM3TTSO Hydra/31: "Duration" field broken in cached builds that are not in DB anymore
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/root/build.tt at line 115
    [3.5076][3.5804:5835]()
    [% IF !build.finished %]
    [3.5076]
    [3.5113]
    [% IF build.finished %]
  • replacement in src/root/build.tt at line 122
    [3.5325][2.7705:7870]()
    [% INCLUDE renderDuration duration = build.stoptime - build.starttime %] <tt>finished at [% INCLUDE renderDateTime timestamp = build.stoptime %]</tt>
    [3.5325]
    [3.5435]
    [% INCLUDE renderDuration duration = build.stoptime - build.starttime %] finished at [% INCLUDE renderDateTime timestamp = build.stoptime %]