private string GetTagsWhichContainsThisCommit(IEnumerable <string> tags, bool showBranchesAsLinks) { var tagString = tags .Select(s => showBranchesAsLinks ? LinkFactory.CreateTagLink(s) : WebUtility.HtmlEncode(s)).Join(", "); if (!String.IsNullOrEmpty(tagString)) { return(Environment.NewLine + WebUtility.HtmlEncode(containedInTags.Text) + " " + tagString); } return(Environment.NewLine + WebUtility.HtmlEncode(containedInNoTag.Text)); }
private string GetTagsWhichContainsThisCommit(string revision, bool showBranchesAsLinks) { var tagString = Module.GetAllTagsWhichContainGivenCommit(revision) .Select(s => showBranchesAsLinks ? LinkFactory.CreateTagLink(s) : WebUtility.HtmlEncode(s)).Join(", "); if (!String.IsNullOrEmpty(tagString)) { return(Environment.NewLine + WebUtility.HtmlEncode(containedInTags.Text) + " " + tagString); } return(Environment.NewLine + WebUtility.HtmlEncode(containedInNoTag.Text)); }