bingo: optional prose per datacenter page

The datacenter pages carry only generated sentences, which is thin
content to rank on. Migration 015 adds about_ru/en/uk, edited in the
admin form and rendered as paragraphs below the facts.

There is deliberately no fallback to ru: Russian prose on the English
page would hurt more than an absent paragraph.

Assisted-by: Claude:opus-5
This commit is contained in:
Sergei Poljanski 2026-10-10 09:41:11 +04:00
commit ca48f4292b
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
6 changed files with 27 additions and 1 deletions

View file

@ -143,6 +143,11 @@ module Bingo
key.delete_prefix(Photo::PREFIX)
end
# Paragraphs of the datacenter page's prose in exactly this locale.
def about(locale)
self[:"about_#{locale}"].to_s.strip.split(/\n\s*\n/).map(&:strip)
end
# 1200x630 JPEG for og:image (every preview client renders it); the
# webp dialog variant until it exists.
def og_file

View file

@ -4,7 +4,7 @@ require 'uri'
# Registered into AsxpioWeb, so AdminAuth (HTTP Basic) and CSRF apply.
module BingoAdmin
DC_TEXT = %w[name_ru name_en name_uk city_ru city_en city_uk operator mw mw_type status
photo_credit photo_source_url info_url].freeze
photo_credit photo_source_url info_url about_ru about_en about_uk].freeze
module Helpers
def bingo_public_url