mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-12 20:18:01 +01:00
14 lines
571 B
Text
14 lines
571 B
Text
= if Enum.any?(@posts) do
|
|
.block
|
|
.block__header
|
|
span.block__header__title Recent Forum Posts
|
|
= link "View all", to: ~p"/posts?#{[pq: "user_id:#{@user.id}"]}"
|
|
|
|
.block__content
|
|
.block
|
|
= for post <- @posts do
|
|
.block__content.alternating-color
|
|
' Post
|
|
=> link pretty_time(post.created_at), to: ~p"/forums/#{post.topic.forum}/topics/#{post.topic}?#{[post_id: post]}" <> "#post_#{post.id}"
|
|
' in topic
|
|
=> link post.topic.title, to: ~p"/forums/#{post.topic.forum}/topics/#{post.topic}"
|