Merge "Link to owner query from user name in ChangeTable2"
This commit is contained in:
@@ -59,6 +59,10 @@ public class PageLinks {
|
||||
return "/admin/projects/" + p.get() + ",access";
|
||||
}
|
||||
|
||||
public static String toAccountQuery(final String fullname) {
|
||||
return "/q/owner:\"" + KeyUtil.encode(fullname) + "\"," + TOP;
|
||||
}
|
||||
|
||||
public static String toAccountDashboard(final AccountInfo acct) {
|
||||
return toAccountDashboard(acct.getId());
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.google.gerrit.client.Gerrit;
|
||||
import com.google.gerrit.client.changes.ChangeInfo.LabelInfo;
|
||||
import com.google.gerrit.client.ui.BranchLink;
|
||||
import com.google.gerrit.client.ui.ChangeLink;
|
||||
import com.google.gerrit.client.ui.InlineHyperlink;
|
||||
import com.google.gerrit.client.ui.NavigationTable;
|
||||
import com.google.gerrit.client.ui.NeedsSignInKeyCommand;
|
||||
import com.google.gerrit.client.ui.ProjectLink;
|
||||
@@ -209,7 +210,9 @@ public class ChangeTable2 extends NavigationTable<ChangeInfo> {
|
||||
if (c.owner() != null && c.owner().name() != null) {
|
||||
owner = c.owner().name();
|
||||
}
|
||||
table.setText(row, C_OWNER, owner);
|
||||
|
||||
table.setWidget(row, C_OWNER, new InlineHyperlink(owner,
|
||||
PageLinks.toAccountQuery(owner)));
|
||||
|
||||
table.setWidget(
|
||||
row, C_PROJECT, new ProjectLink(c.project_name_key(), c.status()));
|
||||
|
Reference in New Issue
Block a user