Skip to content

Commit 5e900c6

Browse files
committed
Move title to the header
1 parent 3ecf976 commit 5e900c6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

app/views/layouts/application.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
<header class="bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700">
2323
<div class="container mx-auto px-4 py-4">
2424
<h1 class="text-2xl font-bold text-gray-900 dark:text-gray-100">
25-
<%= link_to "blade.ruby-lang.org", root_path, class: "hover:text-red-600 dark:hover:text-red-400 transition-colors" %>
25+
<%= link_to @list&.name || 'blade.ruby-lang.org', @list || root_path, class: "hover:text-red-600 dark:hover:text-red-400 transition-colors" %>
2626
</h1>
27+
<p class="text-gray-600 dark:text-gray-400 mt-2">Mailing list archive</p>
2728
</div>
2829
</header>
2930

app/views/messages/index.html.erb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
</div>
77
<% end %>
88

9-
<div class="mb-4">
10-
<h1 class="text-3xl font-bold text-gray-900 dark:text-gray-100"><%= @list.name %></h1>
11-
<p class="text-gray-600 dark:text-gray-400 mt-2">Mailing list archive</p>
12-
</div>
13-
149
<div class="grid grid-cols-4 gap-6" style="height: calc(100vh - 16rem);" data-controller="message-list">
1510
<div class="col-span-1 overflow-y-auto space-y-6">
1611
<%= render partial: 'thread', collection: @messages, as: :message, locals: {list: @list, depth: 0} %>

0 commit comments

Comments
 (0)