mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 20:37:59 +01:00
18 lines
686 B
Text
18 lines
686 B
Text
= if Enum.any?(@posts) do
|
|
.block
|
|
.block__header
|
|
i.fa.fa-pen-square
|
|
| Recent Forum Posts
|
|
|
|
.block__content
|
|
.block
|
|
= for post <- @posts do
|
|
.block__content.alternating-color
|
|
' Post
|
|
=> link pretty_time(post.created_at), to: Routes.forum_topic_path(@conn, :show, post.topic.forum, post.topic, post_id: post) <> "#post_#{post.id}"
|
|
' in topic
|
|
=> link post.topic.title, to: Routes.forum_topic_path(@conn, :show, post.topic.forum, post.topic)
|
|
hr.separator.separator--secondary
|
|
a.button href=Routes.post_path(@conn, :index, pq: "user_id:#{@user.id}")
|
|
i.fa.fa-eye>
|
|
| View all
|