code: func ProjectLinks(c context.Context, project, group string) []ui.LinkGroup {
  	if project == "" {
  		return nil
  	}
  	projLinks := []*ui.Link{
  		ui.NewLink(
  			"Builders",
  			fmt.Sprintf("/p/%s/builders", project),
  			fmt.Sprintf("All builders for project %s", project))}
  	links := []ui.LinkGroup{
  		{
  			Name: ui.NewLink(
  				project,
  				fmt.Sprintf("/p/%s", project),
  				fmt.Sprintf("Project page for %s", project)),
  			Links: projLinks,
  		},
  	}
  	if group != "" {
  		groupLinks := []*ui.Link{}
  		con, err := common.GetConsole(c, project, group)
  		if err != nil {
  			logging.WithError(err).Warningf(c, "error getting console")
  		} else if !con.Def.BuilderViewOnly {
  			groupLinks = append(groupLinks, ui.NewLink(
  				"Console",
  				fmt.Sprintf("/p/%s/g/%s/console", project, group),
  				fmt.Sprintf("Console for group %s in project %s", group, project)))
  		}
  
  		groupLinks = append(groupLinks, ui.NewLink(
  			"Builders",
  			fmt.Sprintf("/p/%s/g/%s/builders", project, group),
  			fmt.Sprintf("Builders for group %s in project %s", group, project)))
  
  		links = append(links, ui.LinkGroup{
  			Name:  ui.NewLink(group, "", ""),
  			Links: groupLinks,
  		})
  	}
  	return links
  }
docs: // ProjectLinks returns the navigation list surrounding a project and optionally group.