The datacenter text said "No. 33 by power" for a site that is 25th on the default card, because it counted construction projects. Rank among operational datacenters only, matching the card, and leave the rank out for sites not yet in service. data.json and status.json gain an operational_rank next to the list position. The status page now lists, under each site, the hosts it probes with their label, last result and the source that ties them to the site, folded away behind a click; the control hosts in Russia get the same list, and datacenter pages show it under their reachability block. status.json carries the same targets. For search: a keyword title tagline and meta description, WebPage and Dataset structured data (pointing at status.json), x-default, and the status pages in the sitemap. Assisted-by: Claude:opus-5-5
39 lines
1.8 KiB
Text
39 lines
1.8 KiB
Text
<% dc = @dc %>
|
|
<main>
|
|
<header>
|
|
<nav class="crumbs"><a href="/<%= @locale %>"><%= t(:title) %></a></nav>
|
|
<nav class="langs">
|
|
<% Bingo::LOCALES.each do |l| %>
|
|
<a href="<%= @path_for.(l) %>" hreflang="<%= l %>" lang="<%= l %>" <%== 'aria-current="page"' if l == @locale %>><%= l %></a>
|
|
<% end %>
|
|
</nav>
|
|
</header>
|
|
|
|
<article class="dc-page<%= ' hit' if dc.incidents.any? %>">
|
|
<% if (photo = photo_path(dc, 1200)) %><img src="<%= photo %>" alt="<%= dc.l(:name, @locale) %>, <%= dc.l(:city, @locale) %>" decoding="async"><% end %>
|
|
<h1><%= dc.l(:name, @locale) %></h1>
|
|
<%== erb :_dc_meta, layout: false, locals: { dc: dc } %>
|
|
<p class="facts"><%= dc_facts(dc).join(' ') %></p>
|
|
<% dc.about(@locale).each do |para| %><p class="facts"><%= para %></p><% end %>
|
|
<% if @status %>
|
|
<section>
|
|
<h2><%= t(:status_dc) %></h2>
|
|
<p><span class="st <%= @status.state %>"><%= t(:status_states)[@status.state] %></span> · <a href="/<%= @locale %>/status"><%= t(:status_link) %></a></p>
|
|
<%== erb :_status_bars, layout: false, locals: { history: @status.history } %>
|
|
<%== erb :_probes, layout: false, locals: { probes: @status.targets, title: t(:status_probes) } %>
|
|
</section>
|
|
<% end %>
|
|
<section>
|
|
<h2><%= t(:incidents) %></h2>
|
|
<%== erb :_dc_incidents, layout: false, locals: { dc: dc } %>
|
|
</section>
|
|
</article>
|
|
|
|
<nav class="pager">
|
|
<% if @prev %><a href="<%= dc_path(@prev) %>" rel="prev">← <%= "##{op_rank(@prev)} " if op_rank(@prev) %><%= @prev.l(:name, @locale) %></a><% else %><span></span><% end %>
|
|
<% if @next %><a href="<%= dc_path(@next) %>" rel="next"><%= "##{op_rank(@next)} " if op_rank(@next) %><%= @next.l(:name, @locale) %> →</a><% end %>
|
|
</nav>
|
|
<p><a href="/<%= @locale %>"><%= t(:back) %></a></p>
|
|
|
|
<%== erb :_footer, layout: false %>
|
|
</main>
|