Merge "ChangeScreen2: Show rename/copy source paths in file table"

This commit is contained in:
Edwin Kempin
2013-12-10 09:46:54 +00:00
committed by Gerrit Code Review
2 changed files with 20 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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,