mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-12 01:36:26 -04:00
26 lines
832 B
Plaintext
26 lines
832 B
Plaintext
- content_for :opengraph do
|
|
- @scientific_name.crop.photos.each do |photo|
|
|
= tag("meta", property: "og:image", content: photo.fullsize_url)
|
|
|
|
= tag("meta", property: "og:title", content: @scientific_name.name)
|
|
= tag("meta", property: "og:type", content: "website")
|
|
= tag("meta", property: "og:url", content: request.original_url)
|
|
= tag("meta", property: "og:site_name", content: ENV['GROWSTUFF_SITE_NAME'])
|
|
|
|
%p#notice= notice
|
|
|
|
= render partial: 'crops/approval_status_message', locals: { crop: @scientific_name.crop }
|
|
|
|
%p
|
|
%b Scientific name:
|
|
= @scientific_name.name
|
|
%p
|
|
%b Crop:
|
|
= link_to @scientific_name.crop, @scientific_name.crop
|
|
|
|
|
|
- if can? :edit, @scientific_name
|
|
= link_to 'Edit', edit_scientific_name_path(@scientific_name), class: 'btn btn-default btn-xs'
|
|
\|
|
|
= link_to 'Back', scientific_names_path
|