1
0
postdoc/app/views/emails/index.html.erb

19 lines
469 B
Plaintext
Raw Normal View History

2020-12-11 20:00:57 +01:00
<% if @emails.any? %>
<div class="email email--no-chrome">
<b class="email__from">
From
</b>
<b class="email__to">To</b>
<b class="email__subject">Subject</b>
<b class="email__created-at">Received At</b>
</div>
<% @emails.each do |email| %>
<%= render(EmailListEntryComponent.new(email: email)) %>
<% end %>
<% else %>
<div class="text-center">
<p>¯\_(ツ)_/¯</p>
<p>We couldn't find any emails.</p>
</div>
<% end %>