Skip to content

Commit fc867f6

Browse files
authored
Merge pull request #78 from amatsuda/tweaks
Various code cleanups
2 parents 17e9874 + 7c8f2ea commit fc867f6

File tree

5 files changed

+3
-25
lines changed

5 files changed

+3
-25
lines changed

app/assets/stylesheets/application.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
.message-selected {
18-
background-color: oklch(98.5% 0.002 247.839) !important;
18+
background-color: oklch(92% 0.05 247.839) !important;
1919
}
2020

2121
@media (prefers-color-scheme: dark) {

app/views/layouts/application.html.erb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,11 @@
99
document.documentElement.classList.remove('dark')
1010
}
1111
</script>
12-
<title><%=
13-
if yield(:title).empty?
14-
'blade.ruby-lang.org'
15-
else
16-
yield(:title)
17-
end
18-
%></title>
12+
<title><%= yield(:title) || 'blade.ruby-lang.org' %></title>
1913
<meta name="viewport" content="width=device-width,initial-scale=1">
2014
<%= csrf_meta_tags %>
2115
<%= csp_meta_tag %>
2216
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
23-
2417
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
2518
<%= javascript_importmap_tags %>
2619
</head>

config/database.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,3 @@ production:
5252
primary: &primary_production
5353
<<: *default
5454
database: blade_ruby_lang_org_production
55-
username: blade_ruby_lang_org
56-
password: <%= ENV["R81_PG_DATABASE_PASSWORD"] %>
57-
cache:
58-
<<: *primary_production
59-
database: blade_ruby_lang_org_production_cache
60-
migrations_paths: db/cache_migrate
61-
queue:
62-
<<: *primary_production
63-
database: blade_ruby_lang_org_production_queue
64-
migrations_paths: db/queue_migrate
65-
cable:
66-
<<: *primary_production
67-
database: blade_ruby_lang_org_production_cable
68-
migrations_paths: db/cable_migrate

config/routes.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Rails.application.routes.draw do
2-
resources :messages
32
get '/:list_name/:list_seq', to: 'messages#show'
43
get '/:list_name/', to: 'messages#index'
54

test/system/messages_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MessagesTest < ApplicationSystemTestCase
1717
end
1818

1919
test 'visiting the search page, and searching a message' do
20-
visit messages_url
20+
visit root_url
2121
assert_selector "h1", text: "blade.ruby-lang.org"
2222

2323
fill_in :q, with: @message1.body

0 commit comments

Comments
 (0)