Merge "ChangeScreen2: Show rename/copy source paths in file table"
This commit is contained in:
@@ -63,16 +63,18 @@ class FileTable extends FlowPanel {
|
||||
}
|
||||
|
||||
interface FileTableCss extends CssResource {
|
||||
String table();
|
||||
String pointer();
|
||||
String reviewed();
|
||||
String status();
|
||||
String pathColumn();
|
||||
String commonPrefix();
|
||||
String renameCopySource();
|
||||
String draftColumn();
|
||||
String newColumn();
|
||||
String commentColumn();
|
||||
String deltaColumn1();
|
||||
String deltaColumn2();
|
||||
String commonPrefix();
|
||||
String inserted();
|
||||
String deleted();
|
||||
}
|
||||
@@ -335,6 +337,7 @@ class FileTable extends FlowPanel {
|
||||
this.comments = comments;
|
||||
this.drafts = drafts;
|
||||
this.hasUser = Gerrit.isSignedIn();
|
||||
table.addStyleName(R.css().table());
|
||||
}
|
||||
|
||||
public boolean execute() {
|
||||
@@ -474,8 +477,14 @@ class FileTable extends FlowPanel {
|
||||
lastPath = path;
|
||||
}
|
||||
|
||||
sb.closeAnchor()
|
||||
.closeTd();
|
||||
sb.closeAnchor();
|
||||
if (info.old_path() != null) {
|
||||
sb.br();
|
||||
sb.openSpan().setStyleName(R.css().renameCopySource())
|
||||
.append(info.old_path())
|
||||
.closeSpan();
|
||||
}
|
||||
sb.closeTd();
|
||||
}
|
||||
|
||||
private int commonPrefix(String path) {
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.table tr {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.status {
|
||||
padding-right: 4px;
|
||||
color: #888;
|
||||
@@ -34,6 +38,10 @@
|
||||
.commonPrefix {
|
||||
color: #888;
|
||||
}
|
||||
.renameCopySource {
|
||||
color: #888;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.draftColumn,
|
||||
.newColumn,
|
||||
|
||||
Reference in New Issue
Block a user