<%== erb :'admin/_nav', layout: false %>

Bingo

<% if bingo_public_url %>public card ↗ · <% end %>monitor

<% if @flash %>
<%= @flash %>
<% end %> <% if can?('bingo', 'write') %>

Record incident

<% end %>

Incidents

<% if @incidents.empty? %>

None yet.

<% else %> <% @incidents.each do |i| %> <% end %>
DateDatacenterKindTitle
<%= i.occurred_on %> <%= i.datacenter.name_ru %> <%= Bingo::ICONS[i.kind] %> <%= i.kind %> <% if i.url %><%= i.title_ru %><% else %><%= i.title_ru %><% end %> <% if can?('bingo', 'delete') %>
<% end %>
<% end %>

Card

<% if can?('bingo', 'write') %>

+ Add datacenter · positions 1–<%= Bingo::SIZE**2 %> are on the card, the rest are reserve

<% else %>

Positions 1–<%= Bingo::SIZE**2 %> are on the card, the rest are reserve.

<% end %> <% @dcs.each do |dc| %> <% if dc.position == Bingo::SIZE**2 + 1 %> <% end %> <% end %>
#PhotoNameOperatorMWStatusIncidents
— reserve (not on the card) —
<%= dc.position %> <% if dc.photo_file %><% else %>—<% end %> <%= dc.name_ru %>
<%= dc.city_ru %>
<%= dc.operator %> <%= dc.mw %><%= " #{dc.mw_type}" if dc.mw_type %> <%= dc.status %> <%= dc.incidents.size %> <%= can?('bingo', 'write') ? 'edit' : 'view' %>