Definition at line 33 of file BootstrapPeerGraphRender.cs.
Definition at line 35 of file BootstrapPeerGraphRender.cs.
readonly List< GraphSetConfiguration > graphs
readonly Objects.Peer peer
readonly PeerPageConfiguration page
readonly Objects.Host host
override string Ntp.Analyzer.Render.Peer.BootstrapPeerGraphRender.Render |
( |
| ) |
|
|
inline |
Implements Ntp.Analyzer.Render.IHtmlObject.
Definition at line 54 of file BootstrapPeerGraphRender.cs.
References Ntp.Analyzer.Data.DataFace.Instance, and Ntp.Analyzer.Data.DataFace.PeerActivities.
56 var builder =
new StringBuilder();
60 Single(p => Equals(p.Host,
host) && Equals(p.Peer,
peer) && p.IsActive);
62 foreach (var graphSet
in graphs)
64 string open = count == 1 ?
" in" :
string.Empty;
66 builder.AppendLine(
@" <div class=""panel panel-default"">");
67 builder.AppendLine(
@" <div class=""panel-heading"">");
68 builder.AppendLine(
@" <h4 class=""panel-title"">");
71 builder.Append(
@" <a class=""accordion-toggle"" data-toggle=""collapse"" ");
72 builder.Append(
@"data-parent=""#accordion"" href=""#collapse");
73 builder.Append(count);
74 builder.AppendLine(
@""">");
76 builder.AppendLine($
@" {graphSet.Title}");
77 builder.AppendLine(
@" </a>");
78 builder.AppendLine(
@" </h4>");
79 builder.AppendLine(
@" </div>");
82 builder.Append(
@" <div id=""collapse");
83 builder.Append(count);
84 builder.Append($
@""" class=""panel-collapse collapse{open}"">");
86 builder.AppendLine(
@" <div class=""panel-body"">");
88 foreach (var graph
in graphSet.Graphs)
90 builder.Append(
@" <div class=""container theme-graph2"">");
94 builder.Append(
@"<a href=""");
97 builder.Append(
@""">");
100 builder.Append(
@"<img class=""img-responsive"" src=""");
101 builder.Append(graph.GetLink(graphSet, activity.Name).ToHtmlString());
102 builder.Append(
@""" alt=""");
103 builder.Append(graph.GetAltName(graphSet, activity.Name));
104 builder.Append(
@""">");
108 builder.Append(
@"</a>");
111 builder.AppendLine(
@"</div>");
114 builder.AppendLine(
@" </div>");
115 builder.AppendLine(
@" </div>");
116 builder.AppendLine(
@" </div>");
121 return builder.ToString();
IEnumerable< PeerGraphPageConfiguration > GraphPages
Gets the graph pages to be linked from this page.
readonly List< GraphSetConfiguration > graphs
readonly Objects.Peer peer
readonly PeerPageConfiguration page
Singleton facade class used to access memory persistent data.
PeerActivityDatabaseMapper PeerActivities
Gets the peer activity mapper.
readonly Objects.Host host
static DataFace Instance
Gets the Singleton instance.
override string Ntp.Analyzer.Render.Peer.BootstrapPeerGraphRender.RenderFooter |
( |
| ) |
|
|
inlinevirtual |
override string Ntp.Analyzer.Render.Peer.BootstrapPeerGraphRender.RenderHead |
( |
| ) |
|
|
inlinevirtual |
readonly Objects.Host Ntp.Analyzer.Render.Peer.BootstrapPeerGraphRender.host |
|
private |
readonly Objects.Peer Ntp.Analyzer.Render.Peer.BootstrapPeerGraphRender.peer |
|
private |
The documentation for this class was generated from the following file: