Inline Edit: Format path with project name and bold file
Match the header formatting used by SideBySide2 where the file path is prefixed with the project path, and the last component of the path is rendered in bold. Change-Id: Ic9e68a1367678663973e58e7f7495bf0c0ff9803
This commit is contained in:
@@ -59,7 +59,7 @@ import com.google.gwtexpui.safehtml.client.SafeHtmlBuilder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
class Header extends Composite {
|
||||
public class Header extends Composite {
|
||||
interface Binder extends UiBinder<HTMLPanel, Header> {}
|
||||
private static final Binder uiBinder = GWT.create(Binder.class);
|
||||
static {
|
||||
@@ -109,7 +109,7 @@ class Header extends Composite {
|
||||
base != null ? base.getId() : null, patchSetId.getId()));
|
||||
}
|
||||
|
||||
private static SafeHtml formatPath(String path, String project, String commit) {
|
||||
public static SafeHtml formatPath(String path, String project, String commit) {
|
||||
SafeHtmlBuilder b = new SafeHtmlBuilder();
|
||||
if (Patch.COMMIT_MSG.equals(path)) {
|
||||
return b.append(Util.C.commitMessage());
|
||||
|
||||
Reference in New Issue
Block a user