Files
growstuff/app/views/posts/_single.html.haml
Daniel O'Connor 49284eb169 Fix haml preview (#3610)
* 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
2024-02-04 15:08:18 +10:30

20 lines
385 B
Plaintext

%p
Posted by
- if @post.author
= link_to @post.author.login_name, member_path(@post.author)
- else
Member Deleted
- if @post.forum
in
= link_to @post.forum, @post.forum
on
= @post.created_at
- if @post.updated_at > @post.created_at
and edited at
= @post.updated_at
= link_to "Permalink", post
:markdown
#{ strip_tags markdownify(@post.body) }