Files
growstuff/app/views/posts/_preview.haml
T
Brenda WallaceandClaude Sonnet 5 be5ed5fca5 Rename Bootstrap 4 utility classes to their Bootstrap 5 names
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>
2026-09-20 18:01:00 +12:00

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'