private static HtmlTag toTag(ValueSourceReport report) { var table = new DetailsTableTag(); report.Values.OrderBy(x => x.Key).Each(pair => table.AddDetail(pair.Key, pair.Value)); var tag = new CollapsibleTag(report.ElementId(), report.Header()); tag.AppendContent(table); return tag.PrependAnchor(); }
public ResponseHeadersTag(RequestLog log) : base(ElementId, Heading) { if (!log.ResponseHeaders.Any()) { Render(false); return; } var detailsTag = new DetailsTableTag(); log.ResponseHeaders.OrderBy(x => x.Name).Each(header => detailsTag.AddDetail(header.Name, header.Value)); AppendContent(detailsTag); }
private static HtmlTag toTag(ValueSourceReport report) { var table = new DetailsTableTag(); foreach (var key in report.Values.GetAllKeys().OrderBy(x => x)) { table.AddDetail(key, string.Join("; ", report.Values[key])); } var tag = new CollapsibleTag(report.ElementId(), report.Header()); tag.AppendContent(table); return tag.PrependAnchor(); }