Fix when no upload

This commit is contained in:
Logan Hunt 2022-04-08 13:04:08 -06:00
parent cc4679c9ab
commit 76b083a2bd
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 52B3774857EB24B1

View File

@ -27,11 +27,13 @@
</div> </div>
<% end %> <% end %>
<%= else %> <%= else %>
<div class="row"> <% if !is_nil(@post.upload) do %>
<div class="column"> <div class="row">
<img style="height:80px" src={Routes.static_path(@socket, "/uploads/#{@post.upload.file}")} /> <div class="column">
<img style="height:80px" src={Routes.static_path(@socket, "/uploads/#{@post.upload.file}")} />
</div>
</div> </div>
</div> <% end %>
<% end %> <% end %>
<div> <div>