mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-03 15:07:48 -05:00
* HAML * rewrite * Fix specs - but likely still wrong * Return temple * Trailing line * Fix specs * This was rearranged, apparently. * Fix tests * Retain escaping * Fix specs * Rubocop * Attempt to fix rendering * Fix output * Move away from filter * Move away from filter * Fix spec * Fix specs * Fix structure to avoid nested paragraph tags
23 lines
605 B
Plaintext
23 lines
605 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.font-weight-bold.mb-3
|
|
%strong
|
|
= link_to post do
|
|
= post.subject
|
|
%p
|
|
by
|
|
= succeed "," do
|
|
%a.font-weight-bold= post.author
|
|
.post-body
|
|
:markdown
|
|
#{post_stripped_tags(post, length: 300)}
|
|
%h6.font-weight-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'
|