mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 18:59:13 -05:00
col-xs-N -> col-N, col-md-offset-N -> offset-md-N, row-fluid -> row, btn-block -> w-100, btn-xs -> btn-sm, form-group -> mb-3 (Bootstrap 5 dropped form-group), and btn-default (Bootstrap 3) -> btn-outline-secondary. The three helpers that combined btn-default with btn-secondary keep just btn-secondary. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
842 B
Plaintext
26 lines
842 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-outline-secondary btn-sm'
|
|
\|
|
|
= link_to 'Back', scientific_names_path
|