2020-07-24 22:10:50 +00:00
|
|
|
<%= case @thumbs[@post.id] do %>
|
2020-07-22 19:22:44 +00:00
|
|
|
<% thumb = %Content.Post{} -> %>
|
|
|
|
<%= if thumb |> Content.Attachment.vertical?() do %>
|
|
|
|
<div class="post-thumbnail post-thumbnail--vertical">
|
|
|
|
<%= img_tag thumb.guid %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="post-thumbnail">
|
|
|
|
<%= img_tag thumb.guid %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% nil -> %>
|
|
|
|
<% end %>
|