Skip to content

Commit

Permalink
image is a link too
Browse files Browse the repository at this point in the history
  • Loading branch information
patwalls committed Jan 13, 2019
1 parent 0f5546e commit f0a4f79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/i/posts/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
.date.lighter
= post.published&.strftime("%B #{post.published&.day&.ordinalize}, %Y")
- if post.meta.exists?
= image_tag(post.meta.url)
= link_to(post_pathy(post)) do
= image_tag(post.meta.url)
= link_to(post.title, post_pathy(post))
- if editable?(@user)
.post-bottom
Expand Down

0 comments on commit f0a4f79

Please sign in to comment.