Make the parent project names in the ProjectDashboardScreen links
The parent project names for the inherited dashboards are now links to the ProjectDashboardScreen of the parent project. Change-Id: I2793a40c1e625e2f2e1e5412228cc3855e65263e Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -17,6 +17,7 @@ package com.google.gerrit.client.dashboards;
|
||||
import com.google.gerrit.client.Gerrit;
|
||||
import com.google.gerrit.client.rpc.NativeList;
|
||||
import com.google.gerrit.client.ui.NavigationTable;
|
||||
import com.google.gerrit.common.PageLinks;
|
||||
import com.google.gerrit.reviewdb.client.Project;
|
||||
import com.google.gwt.user.client.History;
|
||||
import com.google.gwt.user.client.ui.Anchor;
|
||||
@@ -124,7 +125,9 @@ public class DashboardsTable extends NavigationTable<DashboardInfo> {
|
||||
table.setWidget(row, 2, new Anchor(k.path(), "#" + k.url()));
|
||||
table.setText(row, 3, k.description());
|
||||
if (k.project() != null && !project.get().equals(k.project())) {
|
||||
table.setText(row, 4, k.project());
|
||||
table.setWidget(row, 4, new Anchor(k.project(), "#"
|
||||
+ PageLinks.toProjectDashboards(new Project.NameKey(k
|
||||
.project()))));
|
||||
}
|
||||
setRowItem(row, k);
|
||||
}
|
||||
|
Reference in New Issue
Block a user