diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index f6ae8a9..56e4af1 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -15,7 +15,7 @@ */ .message-selected { - background-color: oklch(98.5% 0.002 247.839) !important; + background-color: oklch(92% 0.05 247.839) !important; } @media (prefers-color-scheme: dark) { diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 4a0aea6..4f40b01 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -9,18 +9,11 @@ document.documentElement.classList.remove('dark') } - <%= - if yield(:title).empty? - 'blade.ruby-lang.org' - else - yield(:title) - end - %> + <%= yield(:title) || 'blade.ruby-lang.org' %> <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %> - <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> <%= javascript_importmap_tags %> diff --git a/config/database.yml b/config/database.yml index 21d17a8..e62f68f 100644 --- a/config/database.yml +++ b/config/database.yml @@ -52,17 +52,3 @@ production: primary: &primary_production <<: *default database: blade_ruby_lang_org_production - username: blade_ruby_lang_org - password: <%= ENV["R81_PG_DATABASE_PASSWORD"] %> - cache: - <<: *primary_production - database: blade_ruby_lang_org_production_cache - migrations_paths: db/cache_migrate - queue: - <<: *primary_production - database: blade_ruby_lang_org_production_queue - migrations_paths: db/queue_migrate - cable: - <<: *primary_production - database: blade_ruby_lang_org_production_cable - migrations_paths: db/cable_migrate diff --git a/config/routes.rb b/config/routes.rb index b9488a4..5031106 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,4 @@ Rails.application.routes.draw do - resources :messages get '/:list_name/:list_seq', to: 'messages#show' get '/:list_name/', to: 'messages#index' diff --git a/test/system/messages_test.rb b/test/system/messages_test.rb index 7a6ce03..62eefec 100644 --- a/test/system/messages_test.rb +++ b/test/system/messages_test.rb @@ -17,7 +17,7 @@ class MessagesTest < ApplicationSystemTestCase end test 'visiting the search page, and searching a message' do - visit messages_url + visit root_url assert_selector "h1", text: "blade.ruby-lang.org" fill_in :q, with: @message1.body