Definition at line 32 of file BootstrapHostGraphRender.cs.
override string Ntp.Analyzer.Render.Host.BootstrapHostGraphRender.Render |
( |
| ) |
|
|
inline |
Implements Ntp.Analyzer.Render.IHtmlObject.
Definition at line 47 of file BootstrapHostGraphRender.cs.
49 var builder =
new StringBuilder();
52 foreach (var graphSet
in graphs)
55 string open =
string.Empty;
57 builder.AppendLine(
@" <div class=""panel panel-default"">");
58 builder.AppendLine(
@" <div class=""panel-heading"">");
59 builder.AppendLine(
@" <h4 class=""panel-title"">");
62 builder.Append(
@" <a class=""accordion-toggle"" data-toggle=""collapse"" ");
63 builder.Append(
@"data-parent=""#accordion"" href=""#collapse");
64 builder.Append(count);
65 builder.AppendLine(
@""">");
67 builder.AppendLine($
@" {graphSet.Title}");
68 builder.AppendLine(
@" </a>");
69 builder.AppendLine(
@" </h4>");
70 builder.AppendLine(
@" </div>");
72 builder.Append(
@" <div id=""collapse");
73 builder.Append(count);
74 builder.Append($
@""" class=""panel-collapse collapse{open}"">");
76 builder.AppendLine(
@" <div class=""panel-body"">");
78 foreach (var graph
in graphSet.Graphs)
80 builder.Append(
@" <div class=""container theme-graph2"">");
84 builder.Append(
@"<a href=""");
85 builder.Append(
page.
GraphPages.First().GetLink(graphSet, graph).ToHtmlString());
86 builder.Append(
@""">");
89 builder.Append(
@"<img class=""img-responsive"" src=""");
90 builder.Append(graph.GetLink(graphSet).ToHtmlString());
91 builder.Append(
@""" alt=""");
92 builder.Append(graph.GetAltName(graphSet));
93 builder.Append(
@""">");
97 builder.Append(
@"</a>");
100 builder.AppendLine(
@"</div>");
103 builder.AppendLine(
@" </div>");
104 builder.AppendLine(
@" </div>");
105 builder.AppendLine(
@" </div>");
110 return builder.ToString();
readonly HostPageConfiguration page
readonly List< GraphSetConfiguration > graphs
IEnumerable< HostGraphPageConfiguration > GraphPages
Gets the host graph pages to be linked from this page.
override string Ntp.Analyzer.Render.Host.BootstrapHostGraphRender.RenderFooter |
( |
| ) |
|
|
inlinevirtual |
override string Ntp.Analyzer.Render.Host.BootstrapHostGraphRender.RenderHead |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: