Skip to content

Commit

Permalink
blog image tweak (#4743)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Feb 1, 2019
1 parent 0cc309e commit e26c6a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/views/dashboard/dashboard.html.erb
Expand Up @@ -27,8 +27,13 @@
<div class="dashboard-blog">

<% if @blog %>
<div class="img"<% if @blog.main_image %> style="background-image: url('<%= @blog.main_image.path(:large) %>')"<% end %>>

<% if @blog.main_image %>
<div class="img" style="background-image: url('<%= @blog.main_image.path(:large) %>')">
<% elsif @blog.scraped_image %>
<div class="img" style="background-image: url('<%= @blog.scraped_image %>')">
<% end %>

<div class="blog-caption">

<h4>
Expand Down

0 comments on commit e26c6a3

Please sign in to comment.