UI: Add the latest Commit date/time - done (fix for
@@ -1348,11 +1348,12 @@ class Logs extends localization.LocalizedReactComponent {
(commitStatus || '').toLowerCase() !== 'committing' &&
roleModel.executeAllowed(this.props.run.value)) {
let previousStatus;
+ const commitDate = displayDate(this.props.run.value.lastChangeCommitTime);
switch ((commitStatus || '').toLowerCase()) {
case 'not_committed': break;
case 'committing': previousStatus = <span><Icon type="loading" /> COMMITTING...</span>; break;
- case 'failure': previousStatus = <span>COMMIT FAILURE</span>; break;
- case 'success': previousStatus = <span>COMMIT SUCCEEDED</span>; break;
+ case 'failure': previousStatus = <span>COMMIT FAILURE ({commitDate})</span>; break;
+ case 'success': previousStatus = <span>COMMIT SUCCEEDED ({commitDate})</span>; break;
default: break;
}
if (previousStatus) {
@@ -1361,11 +1362,12 @@ class Logs extends localization.LocalizedReactComponent {
CommitStatusButton = (<a onClick={this.openCommitRunForm}>COMMIT</a>);
}
} else {
+ const commitDate = displayDate(this.props.run.value.lastChangeCommitTime);
switch ((commitStatus || '').toLowerCase()) {
case 'not_committed': break;
case 'committing': CommitStatusButton = <span><Icon type="loading" /> COMMITTING...</span>; break;
- case 'failure': CommitStatusButton = <span>COMMIT FAILURE</span>; break;
- case 'success': CommitStatusButton = <span>COMMIT SUCCEEDED</span>; break;
+ case 'failure': CommitStatusButton = <span>COMMIT FAILURE ({commitDate})</span>; break;
+ case 'success': CommitStatusButton = <span>COMMIT SUCCEEDED ({commitDate})</span>; break;
default: break;
}
}
