mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-01 10:24:30 -04:00
text-left/right -> text-start/end, float-left/right -> float-start/end, ml-/mr-/pl-/pr- -> ms-/me-/ps-/pe-, border-left/right -> border-start/end, dropdown-menu-left/right -> dropdown-menu-start/end, font-weight-* -> fw-*, font-italic -> fst-italic and sr-only -> visually-hidden. Bootstrap 5 dropped text-justify, so the site keeps a one-line rule for it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
23 lines
578 B
Plaintext
23 lines
578 B
Plaintext
|
|
.view
|
|
= link_to post do
|
|
= image_tag post_image_path(post), class: 'img img-cover', alt: "A photo related to this post"
|
|
%h4.fw-bold.mb-3
|
|
%strong
|
|
= link_to post do
|
|
= post.subject
|
|
%p
|
|
by
|
|
= succeed "," do
|
|
%a.fw-bold= post.author
|
|
.post-body
|
|
:markdown
|
|
#{post_stripped_tags(post, length: 300)}
|
|
%h6.fw-bold.mb-3
|
|
- post.crops.each do |crop|
|
|
= link_to crop do
|
|
= crop_icon(crop)
|
|
= crop.name.pluralize
|
|
/ = image_tag avatar_uri(post.author, 50), class: 'avatar', alt: post.author
|
|
= link_to 'Read more', post, class: 'btn btn-rounded btn-md'
|