Skip to content

Commit 992f02b

Browse files
committed
Show each message's published date
1 parent fdf90d2 commit 992f02b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/views/messages/_thread.html.erb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
</svg>
2424
<%= count = message.count_recursively %> <%= count == 1 ? 'message' : 'messages' %>
2525
</span>
26+
<span class="inline-flex items-center gap-1">
27+
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
28+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
29+
</svg>
30+
<%= message.published_at.strftime('%Y/%m/%d') %>
31+
</span>
2632
</div>
2733
</div>
2834
</div>
@@ -39,6 +45,7 @@
3945
<span class="px-0.5">[#<%= message.list_seq %>] <%= without_list_prefix(message.subject) %></span>
4046
</span>
4147
<span class="text-gray-500 dark:text-gray-400"><%= message.from %></span>
48+
<span class="text-gray-500 dark:text-gray-400 ml-2"><%= message.published_at.strftime('%Y/%m/%d') %></span>
4249
<% if message.body.present? %>
4350
<p class="text-xs text-gray-500 dark:text-gray-400 mt-1 line-clamp-1"><%= message.body.lines.first&.strip %></p>
4451
<% end %>

0 commit comments

Comments
 (0)