/** * Shows the dashboard page. * * @param mode applicable to the nav bar * @return */ @Restrict(@Group(Application.USER_ROLE)) public Result dashboard(String mode) { final AuthUser currentAuthUser = PlayAuthenticate.getUser(session()); final User localUser = User.findByAuthUserIdentity(currentAuthUser); List<Project> projects = Project.findAllByUser(localUser.email); return ok(dashboard_main.render(localUser, Const.NAV_DASHBOARD, my_projects.render(projects))); }