philomena/lib/philomena_web/templates/profile/_recent_posts.html.slime

19 lines
686 B
Text
Raw Normal View History

2019-12-05 05:53:56 +01:00
= if Enum.any?(@posts) do
.block
.block__header
2023-11-23 17:07:49 +01:00
i.fa.fa-pen-square
| Recent Forum Posts
2019-12-05 05:53:56 +01:00
.block__content
.block
= for post <- @posts do
.block__content.alternating-color
2019-12-05 19:32:53 +01:00
' Post
2019-12-05 05:53:56 +01:00
=> link pretty_time(post.created_at), to: Routes.forum_topic_path(@conn, :show, post.topic.forum, post.topic, post_id: post) <> "#post_#{post.id}"
2019-12-05 19:32:53 +01:00
' in topic
2019-12-05 05:53:56 +01:00
=> link post.topic.title, to: Routes.forum_topic_path(@conn, :show, post.topic.forum, post.topic)
2023-11-23 17:07:49 +01:00
hr.separator.separator--secondary
a.button href=Routes.post_path(@conn, :index, pq: "user_id:#{@user.id}")
i.fa.fa-eye>
| View all