Definition at line 31 of file BootstrapPeerInfoRender.cs.
Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.BootstrapPeerInfoRender |
( |
Uri |
webPath, |
|
|
TimeServer |
server, |
|
|
DateTime |
now, |
|
|
DateTime |
next, |
|
|
string |
name, |
|
|
string |
ip |
|
) |
| |
|
inline |
override string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.Render |
( |
| ) |
|
|
inline |
Implements Ntp.Analyzer.Render.IHtmlObject.
Definition at line 196 of file BootstrapPeerInfoRender.cs.
References Ntp.Common.Web.PageText.HtmlBlank.
198 var builder =
new StringBuilder();
200 builder.AppendLine(
@" <div class=""row"">");
201 builder.AppendLine(
@" <div class=""col-md-2""><b>Server location</b></div>");
202 builder.Append(
@" <div class=""col-md-10"">");
204 builder.AppendLine(
"</div>");
205 builder.AppendLine(
@" </div>");
207 builder.AppendLine(
@" <div class=""row"">");
208 builder.AppendLine(
@" <div class=""col-md-2""><b>Synchronization</b></div>");
209 builder.Append(
@" <div class=""col-md-10"">");
211 builder.AppendLine(
"</div>");
212 builder.AppendLine(
@" </div>");
214 builder.AppendLine(
@" <div class=""row"">");
215 builder.AppendLine(
@" <div class=""col-md-2""><b>IP address</b></div>");
216 builder.Append(
@" <div class=""col-md-4"">");
218 builder.AppendLine(
"</div>");
220 builder.AppendLine(
@" <div class=""col-md-2""><b>Access policy</b></div>");
221 builder.Append(
@" <div class=""col-md-4"">");
223 builder.AppendLine(
"</div>");
224 builder.AppendLine(
@" </div>");
226 builder.AppendLine(
@" <div class=""row"">");
227 builder.AppendLine(
@" <div class=""col-md-2""><b>IPv6 address</b></div>");
228 builder.Append(
@" <div class=""col-md-4"">");
230 builder.AppendLine(
@"</div>");
232 builder.AppendLine(
@" <div class=""col-md-2""><b>Service area</b></div>");
233 builder.Append(
@" <div class=""col-md-4"">");
235 builder.AppendLine(
@"</div>");
236 builder.AppendLine(
@" </div>");
238 builder.AppendLine(
@" <div class=""row"">");
239 builder.AppendLine(
@" <div class=""col-md-2""><b>Pool member</b></div>");
240 builder.Append(
@" <div class=""col-md-4"">");
242 builder.AppendLine(
@"</div>");
244 builder.AppendLine(
@" <div class=""col-md-2""><b>Description</b></div>");
245 builder.Append(
@" <div class=""col-md-4"">");
247 builder.AppendLine(
@"</div>");
248 builder.AppendLine(
@" </div>");
250 builder.AppendLine(
@" <p class=""pool"">");
254 builder.Append(
@" ");
256 builder.AppendLine(
@" ");
261 builder.Append(
@" ");
263 builder.AppendLine(
@" ");
268 builder.Append(
@" ");
270 @"<a class=""btn btn-lg btn-primary"" href=""http://support.ntp.org/bin/view/Servers/PublicTimeServer");
271 builder.Append(
server.
Id.ToString(CultureInfo.InvariantCulture).PadLeft(6,
'0'));
272 builder.AppendLine(
@""">View info on support.ntp.org »</a>");
275 builder.AppendLine(
@" </p>");
277 return builder.ToString();
readonly TimeServer server
int Id
Gets the identifier.
override string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.RenderFooter |
( |
| ) |
|
|
inlinevirtual |
override string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.RenderHead |
( |
| ) |
|
|
inlinevirtual |
Implements Ntp.Analyzer.Render.HtmlObjectRender.
Definition at line 290 of file BootstrapPeerInfoRender.cs.
292 var builder =
new StringBuilder();
294 builder.AppendLine(
@" <div class=""container"">");
295 builder.AppendLine(
@" <div class=""jumbotron"">");
297 builder.Append(
" <h1>");
298 builder.Append(
Name);
299 builder.Append(
"</h1>");
303 builder.Append(
" <h3>Stratum ");
305 builder.AppendLine(
" server</h3>");
308 builder.Append(
" <p>");
309 builder.Append(
Time);
310 builder.Append(
". ");
311 builder.Append(
"Next refresh scheduled at ");
312 builder.Append(
next.ToShortTimeString());
313 builder.AppendLine(
".</p>");
315 return builder.ToString();
readonly string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.ip |
|
private |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.IpV6Address => string.IsNullOrEmpty(server?.V6Address) ? PageText.HtmlBlank : server.V6Address |
|
private |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.Location => string.IsNullOrEmpty(server?.Location) ? PageText.HtmlBlank : server.Location |
readonly string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.name |
|
private |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.Name => string.IsNullOrEmpty(server?.Name) ? name : server.Name |
|
private |
readonly DateTime Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.next |
|
private |
readonly DateTime Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.now |
|
private |
readonly TimeServer Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.server |
|
private |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.ServerSync => string.IsNullOrEmpty(server?.Server) ? PageText.HtmlBlank : server.Server |
|
private |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.Time |
Initial value:=> string.Concat(
" ",
TimeZoneInfo.Local.IsDaylightSavingTime(
now)
? TimeZoneInfo.Local.DaylightName
: TimeZoneInfo.Local.StandardName,
" ",
)
Definition at line 86 of file BootstrapPeerInfoRender.cs.
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.IpV4Address |
|
getprivate |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.PoolMemberLink |
|
getprivate |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.PoolMemberStatus |
|
getprivate |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.ProviderLink |
|
getprivate |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.ServerAccess |
|
getprivate |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.ServiceArea |
|
getprivate |
string Ntp.Analyzer.Render.Peer.BootstrapPeerInfoRender.StratumText |
|
getprivate |
The documentation for this class was generated from the following file: