Link to project default dashboard and project info from ChangeScreen
At the moment the project name that is displayed in the ChangeInfoBlock on the ChangeScreen links to a project search, that queries for all changes of that project that have the same state as the displayed change. There are two things that are inconvinient about this: 1. The query that is executed depends on the change state. E.g. after submitting a change it now delivers the closed changes of that project, but maybe the user rather wants to continue looking at the open changes of the project to submit the next change. 2. The project screens get more important since more data is made available there (e.g. the clone URL for the project, the project dashboards etc.) and users want to navigate to the project screens from a change. Actually many users might expect to reach the project screen by clicking on the project name. Make the links for the project more convinient by having 1. the search icon in front of the project name that links to the default dashboard of the project 2. the project name link to the project info This is consistent with the links in the project list. Change-Id: I7df7eb09995031d13630b5d4cd873366a248c8d6 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -57,6 +57,10 @@ public class PageLinks {
|
||||
return "/c/" + ps.getParentKey() + "/" + ps.get();
|
||||
}
|
||||
|
||||
public static String toProject(final Project.NameKey p) {
|
||||
return ADMIN_PROJECTS + p.get();
|
||||
}
|
||||
|
||||
public static String toProjectAcceess(final Project.NameKey p) {
|
||||
return "/admin/projects/" + p.get() + ",access";
|
||||
}
|
||||
|
Reference in New Issue
Block a user