https://bugs.webkit.org/show_bug.cgi?id=141315
Rubber-stamped by Andreas Kling.
Show the difference instead of the old value per kling's request.
* public/v2/app.js:
(App.PaneController._updateDetails):
* public/v2/index.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179731
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
+
+ Move commits viewer to the end of details view
+ https://bugs.webkit.org/show_bug.cgi?id=141315
+
+ Rubber-stamped by Andreas Kling.
+
+ Show the difference instead of the old value per kling's request.
+
+ * public/v2/app.js:
+ (App.PaneController._updateDetails):
+ * public/v2/index.html:
+
2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
Move commits viewer to the end of details view
}
var chartData = this.get('chartData');
+ var valueDiff = oldMeasurement ? chartData.formatter(currentMeasurement.mean() - oldMeasurement.mean()) : null;
+ if (valueDiff && valueDiff > 0)
+ valueDiff = '+' + valueDiff;
+
this.set('details', Ember.Object.create({
status: this._computeStatus(currentPoint),
currentValue: chartData.formatter(currentMeasurement.mean()),
- oldValue: oldMeasurement ? chartData.formatter(oldMeasurement.mean()) : null,
+ valueDiff: valueDiff,
buildNumber: buildNumber,
buildURL: buildURL,
buildTime: currentMeasurement.formattedBuildTime(),
<th>Current</th>
<td>
{{details.currentValue}} {{chartData.unit}}
- {{#if details.oldValue}}
- (from {{details.oldValue}} {{chartData.unit}})
+ {{#if details.valueDiff}}
+ ({{details.valueDiff}} {{chartData.unit}})
{{/if}}
{{#if details.status.label}}
<br>