Link the source code on GitHub from the footer
All checks were successful
Build and Deploy to Production / test (push) Successful in 19s
Build and Deploy to Production / build (push) Successful in 49s
Build and Deploy to Production / deploy (push) Successful in 35s

The site now lives in a public repo; point readers at it in all three
languages. Both pages had the same footer, so it becomes one partial
(absorbing the credits partial).

Assisted-by: Claude:opus-5
This commit is contained in:
Sergei Poljanski 2026-10-12 04:02:07 +04:00
commit 9336a8a7d2
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
7 changed files with 21 additions and 12 deletions

View file

@ -333,6 +333,15 @@ class BingoTest < Minitest::Test
refute_includes last_response.body, 'Second.' # no fallback across languages
end
def test_footer_links_to_source
{ 'ru' => 'Исходный код на GitHub', 'en' => 'Source code on GitHub', 'uk' => 'Вихідний код на GitHub' }.each do |l, text|
get "/#{l}"
assert_includes last_response.body, %(<a href="https://github.com/asxpi/datacenterbingo" rel="noopener">#{text}</a>)
end
get '/en/dc/dc-1'
assert_includes last_response.body, 'github.com/asxpi/datacenterbingo'
end
def test_static_files_not_served
get '/style.css'
assert_equal 404, last_response.status