NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Render.BootstrapAboutPageRender Class Reference
Inheritance diagram for Ntp.Analyzer.Render.BootstrapAboutPageRender:
Collaboration diagram for Ntp.Analyzer.Render.BootstrapAboutPageRender:

Public Member Functions

 BootstrapAboutPageRender (Uri webPath, string title, string header, string content, int?id)
 
- Public Member Functions inherited from Ntp.Analyzer.Render.BootstrapPageRender
override string Render ()
 
override string RenderFooter ()
 
override string RenderHead ()
 
- Public Member Functions inherited from Ntp.Analyzer.Render.HtmlObjectRender
void Add (IHtmlObject child)
 

Protected Member Functions

override string RenderPageBody ()
 
override string RenderPageFooter ()
 
override string RenderPageHead ()
 
- Protected Member Functions inherited from Ntp.Analyzer.Render.BootstrapPageRender
 BootstrapPageRender (Uri webPath, string title)
 
- Protected Member Functions inherited from Ntp.Analyzer.Render.HtmlObjectRender
 HtmlObjectRender (Uri webPath)
 

Private Attributes

readonly string content
 
readonly string header
 
readonly int id
 

Additional Inherited Members

- Public Attributes inherited from Ntp.Analyzer.Render.HtmlObjectRender
IEnumerable< IHtmlObjectChildren => children.ToArray()
 
- Properties inherited from Ntp.Analyzer.Render.BootstrapPageRender
virtual string Title [get]
 
- Properties inherited from Ntp.Analyzer.Render.HtmlObjectRender
Uri WebPath [get]
 
- Properties inherited from Ntp.Analyzer.Render.IHtmlObject
IEnumerable< IHtmlObjectChildren [get]
 
Uri WebPath [get]
 

Detailed Description

Definition at line 28 of file BootstrapAboutPageRender.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Render.BootstrapAboutPageRender.BootstrapAboutPageRender ( Uri  webPath,
string  title,
string  header,
string  content,
int?  id 
)
inline

Definition at line 30 of file BootstrapAboutPageRender.cs.

31  : base(webPath, title)
32  {
33  this.header = header;
34  this.content = content;
35  this.id = id;
36  }

Member Function Documentation

override string Ntp.Analyzer.Render.BootstrapAboutPageRender.RenderPageBody ( )
inlineprotectedvirtual

Implements Ntp.Analyzer.Render.BootstrapPageRender.

Definition at line 42 of file BootstrapAboutPageRender.cs.

43  {
44  var builder = new StringBuilder();
45 
46  builder.AppendLine(@"<div class=""container theme-showcase"">");
47  builder.AppendLine(@"<div class=""jumbotron"">");
48  builder.Append("<h1>");
49  builder.Append(header);
50  builder.AppendLine("</h1>");
51  builder.AppendLine(content);
52 
53  if (id != null)
54  {
55  builder.Append(@"<p class=""pool""><a class=""btn btn-lg btn-primary"" ");
56  builder.Append(
57  $@"href=""http://support.ntp.org/bin/view/Servers/PublicTimeServer{id.Value.ToString(
58  CultureInfo.InvariantCulture).PadLeft(6, '0')}"">");
59  builder.AppendLine(@"View info on support.ntp.org &raquo;</a></p>");
60  }
61 
62  builder.AppendLine("</div>");
63  builder.AppendLine("</div>");
64 
65  return builder.ToString();
66  }
override string Ntp.Analyzer.Render.BootstrapAboutPageRender.RenderPageFooter ( )
inlineprotectedvirtual

Implements Ntp.Analyzer.Render.BootstrapPageRender.

Definition at line 68 of file BootstrapAboutPageRender.cs.

69  {
70  return string.Empty;
71  }
override string Ntp.Analyzer.Render.BootstrapAboutPageRender.RenderPageHead ( )
inlineprotectedvirtual

Implements Ntp.Analyzer.Render.BootstrapPageRender.

Definition at line 73 of file BootstrapAboutPageRender.cs.

74  {
75  return this.AppendWithWebpath(
76  @" <link href=""{0}{1}"" rel=""stylesheet"" media=""screen"">",
77  "css/graph.css");
78  }

Member Data Documentation

readonly string Ntp.Analyzer.Render.BootstrapAboutPageRender.content
private

Definition at line 38 of file BootstrapAboutPageRender.cs.

readonly string Ntp.Analyzer.Render.BootstrapAboutPageRender.header
private

Definition at line 39 of file BootstrapAboutPageRender.cs.

readonly int Ntp.Analyzer.Render.BootstrapAboutPageRender.id
private

Definition at line 40 of file BootstrapAboutPageRender.cs.


The documentation for this class was generated from the following file: