Add a second public site to the same process: a 5x5 card of the 25 largest Russian datacenters where a cell is crossed out once an incident with a public source is recorded (Yandex Sasovo and Kaluga drone strikes on 2026-10-08/09 are seeded). config.ru dispatches by Host, so it rides the existing container, DB and bucket instead of a new deploy. The card is localized ru/en/uk with per-locale columns falling back to ru. Content is managed from /admin/bingo on asxp.io, reusing AdminAuth and CSRF. Photos go to the existing bucket under bingo/ and are proxied by the app, so the bucket stays private and storage needs no change. The seed data was fact-checked against operator sites and press on 2026-10-10; several entries in the original list were wrong or vague. Assisted-by: Claude:opus-5
41 lines
1.5 KiB
Text
41 lines
1.5 KiB
Text
<div class="header">
|
|
<h1>Invoices</h1>
|
|
<p class="tagline"><a href="/admin/invoices/new">+ New invoice</a> · <a href="/admin/bingo">bingo</a></p>
|
|
</div>
|
|
|
|
<% if @invoices.empty? %>
|
|
<section class="section">
|
|
<p>No invoices yet. <a href="/admin/invoices/new">Create the first one</a>.</p>
|
|
</section>
|
|
<% else %>
|
|
<section class="section">
|
|
<table class="invoice-list">
|
|
<thead>
|
|
<tr>
|
|
<th>Number</th>
|
|
<th>Client</th>
|
|
<th>Issued</th>
|
|
<th class="num">Total</th>
|
|
<th>Status</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @invoices.each do |inv| %>
|
|
<tr>
|
|
<td class="mono"><%= inv.number %></td>
|
|
<td><%= inv.client_name %></td>
|
|
<td class="mono"><%= inv.issued_on.strftime('%Y-%m-%d') %></td>
|
|
<td class="num mono"><%= inv.currency %> <%= '%.2f' % inv.total %></td>
|
|
<td>
|
|
<span class="badge badge-<%= inv.status %>"><%= inv.status %></span>
|
|
</td>
|
|
<td class="actions">
|
|
<a href="/admin/invoices/<%= inv.uuid %>">view</a>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<% end %>
|