Skip to content

Commit

Permalink
Growstuff#816 For scientific names, list all photos
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Mar 28, 2016
1 parent 22bda5c commit 82920a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/scientific_names/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- content_for :opengraph do
- if @scientific_name.crop.photos.any?
<meta property="og:image" content="#{@scientific_name.crop.photos.first.thumbnail_url}"/>
= @scientific_name.crop.photos.each do |photo|
<meta property="og:image" content="#{@photo.thumbnail_url}"/>
<meta property="og:title" content="#{@scientific_name.scientific_name}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="#{request.original_uri}" />
Expand Down

0 comments on commit 82920a5

Please sign in to comment.