Place change status right after change number instead of title
Instead of having it be grayed out, place it right next to the change number before the colon. Bug: Issue 4540 Change-Id: I7ff90183c4376bea0ecd76b7f853a5ef8ea1af61
This commit is contained in:
@@ -77,7 +77,6 @@ limitations under the License.
|
||||
width: 50em;
|
||||
}
|
||||
.changeStatus {
|
||||
color: #999;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
/* Strong specificity here is needed due to
|
||||
@@ -212,9 +211,10 @@ limitations under the License.
|
||||
<div class="header">
|
||||
<span class="header-title">
|
||||
<gr-change-star change="{{_change}}" hidden$="[[!_loggedIn]]"></gr-change-star>
|
||||
<a href$="[[_computeChangePermalink(_change._number)]]">[[_change._number]]</a><span>:</span>
|
||||
<a href$="[[_computeChangePermalink(_change._number)]]">[[_change._number]]</a><!--
|
||||
--><span class="changeStatus">[[_computeChangeStatus(_change, _patchRange.patchNum)]]</span><!--
|
||||
--><span>:</span>
|
||||
<span>[[_change.subject]]</span>
|
||||
<span class="changeStatus">[[_computeChangeStatus(_change, _patchRange.patchNum)]]</span>
|
||||
</span>
|
||||
</div>
|
||||
<section class="changeInfo">
|
||||
|
||||
@@ -495,7 +495,7 @@
|
||||
} else {
|
||||
statusString = this.changeStatusString(change);
|
||||
}
|
||||
return statusString ? '(' + statusString + ')' : '';
|
||||
return statusString ? ' (' + statusString + ')' : '';
|
||||
},
|
||||
|
||||
_computeLatestPatchNum: function(allPatchSets) {
|
||||
|
||||
@@ -415,7 +415,7 @@ limitations under the License.
|
||||
labels: {},
|
||||
};
|
||||
var status = element._computeChangeStatus(element._change, '1');
|
||||
assert.equal(status, '(Draft)');
|
||||
assert.equal(status, ' (Draft)');
|
||||
});
|
||||
|
||||
test('revision status draft', function() {
|
||||
@@ -438,7 +438,7 @@ limitations under the License.
|
||||
labels: {},
|
||||
};
|
||||
var status = element._computeChangeStatus(element._change, '2');
|
||||
assert.equal(status, '(Draft)');
|
||||
assert.equal(status, ' (Draft)');
|
||||
});
|
||||
|
||||
test('show commit message edit button', function() {
|
||||
|
||||
Reference in New Issue
Block a user