ChangeScreen2: Add query icon for project

As on the old change screen the project link should link to the
project administration page and there should be a query icon to search
for changes on the project. Clicking on the query icon opens the
default dashboard of the project or if no default dashboard is defined
it queries for the open changes of the project.

This behaviour is consistent with the old change screen so that users
don't get confused.

Bug: issue 2075
Change-Id: I62f87466b60896ecb046e6053f8361405a5c4285
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-10-28 16:40:48 +01:00
parent ed31e1c2ad
commit a2b2a2703e
4 changed files with 32 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ import com.google.gwt.user.client.ui.Image;
public class ProjectSearchLink extends InlineHyperlink {
public ProjectSearchLink(Project.NameKey projectName) {
super(" ", PageLinks.toProjectDashboard(projectName, "default"));
super(" ", PageLinks.toProjectDefaultDashboard(projectName));
setTitle(Util.C.projectListQueryLink());
final Image image = new Image(Gerrit.RESOURCES.queryIcon());
DOM.insertBefore(getElement(), image.getElement(),