Related Changes: Strike through abandoned changes
This makes it easy to distinguish between merged and abandoned changes. Change-Id: I3ecc5c4cb2bf86ef9e8aae7ef0af87e54e154fec
This commit is contained in:
@@ -59,6 +59,7 @@ public class RelatedChanges extends TabPanel {
|
||||
String pointer();
|
||||
String row();
|
||||
String subject();
|
||||
String strikedSubject();
|
||||
String submittable();
|
||||
String tabPanel();
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ import com.google.gerrit.client.changes.ChangeInfo.CommitInfo;
|
||||
import com.google.gerrit.client.changes.Util;
|
||||
import com.google.gerrit.client.config.GitwebInfo;
|
||||
import com.google.gerrit.common.PageLinks;
|
||||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gerrit.reviewdb.client.PatchSet;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.core.client.JsArray;
|
||||
@@ -280,7 +281,11 @@ class RelatedChangesTab implements IsWidget {
|
||||
sb.append(POINTER_HTML);
|
||||
sb.closeSpan();
|
||||
|
||||
sb.openSpan().setStyleName(RelatedChanges.R.css().subject());
|
||||
if (info.status() == Change.Status.ABANDONED) {
|
||||
sb.openSpan().setStyleName(RelatedChanges.R.css().strikedSubject());
|
||||
} else {
|
||||
sb.openSpan().setStyleName(RelatedChanges.R.css().subject());
|
||||
}
|
||||
String url = url();
|
||||
if (url != null) {
|
||||
sb.openAnchor().setAttribute("href", url);
|
||||
|
||||
@@ -38,13 +38,16 @@
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.subject {
|
||||
.subject, .strikedSubject {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 355px;
|
||||
}
|
||||
.strikedSubject {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.tabPanel .gwt-TabBarItem,
|
||||
.tabPanel .gwt-TabBarItem-selected,
|
||||
|
||||
Reference in New Issue
Block a user