Link to owner query from user name in ChangeTable2

The link to change owners' dashboards was removed a while ago
from the ChangeTable2.  Reinstate an owner link but this time
link it to a search for other changes owned by that user.  The
original link used the accountId, this time use the fullname
instead.

Change-Id: Ie23094416b4bfd2d9c522253df9847833c297ee2
This commit is contained in:
Martin Fick
2012-05-08 21:21:21 -07:00
parent 7bf1f93d25
commit c7426fd77c
2 changed files with 8 additions and 1 deletions

View File

@@ -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());
}