static XElement GetHtmlScrumBoardIssue(GitIssue issue) { var points = issue.GetScrumPoints(); return new XElement( "div", new XAttribute("class", "scrum_board_issue"), new XElement( "h3", new XElement( "a", new XAttribute("href", issue.HtmlUrl), String.Format("{0}#{1}", issue.Repos.Name, issue.Number))), new XElement("p", issue.Title), new XElement( "p", "Assigned to: ", issue.Assignee==null ? null : new XElement("strong", issue.Assignee.Login)), new XElement( "p", "Points: ", points.HasValue ? new XElement("strong", points.Value.ToString("0.0")) : null)); }
static XElement GetHtmlScrumBoardIssue(GitIssue issue) { var points = issue.GetScrumPoints(); return new XElement( "div", new XAttribute("class", "scrum_board_issue"), new XElement( "h3", new XElement( "a", new XAttribute("href", issue.HtmlUrl), new XAttribute("target", "_blank"), String.Format("{0}#{1}", issue.Repos.Name, issue.Number))), new XElement("p", issue.Title), new XElement( "p", new XElement( "span", new XAttribute("class", points.HasValue?"estimated":"unestimated"), "Points: ", new XElement("strong", points.HasValue ? points.Value.ToString("0.0") : "-")), " ", new XElement( "span", new XAttribute("class", issue.Assignee==null?"unassigned":"assigned"), "Asigned to: ", new XElement("strong", issue.Assignee==null ? "none" : issue.Assignee.Login)))); }