mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-11 11:38:01 +01:00
35 lines
1.5 KiB
Text
35 lines
1.5 KiB
Text
h1 Discussion Forums
|
|
.block
|
|
.block__header
|
|
a href=~p"/posts"
|
|
i.fa.icon--padded.small.fa-search>
|
|
' Search Posts
|
|
span.block__header__item
|
|
=> @topic_count
|
|
' topics
|
|
.block__content
|
|
table.table.table--communication-list
|
|
thead
|
|
tr
|
|
th.table--communication-list__name Forum
|
|
th.table--communication-list__stats.hidden--mobile Topics
|
|
th.table--communication-list__stats.hidden--mobile Posts
|
|
th.table--communication-list__last-post Last Post
|
|
tbody
|
|
= for forum <- @forums do
|
|
tr
|
|
td.table--communication-list__name
|
|
=> link(forum.name, to: ~p"/forums/#{forum}")
|
|
.small-text = forum.description
|
|
td.table--communication-list__stats.hidden--mobile = forum.topic_count
|
|
td.table--communication-list__stats.hidden--mobile = forum.post_count
|
|
td.table--communication-list__last-post
|
|
= if forum.last_post do
|
|
strong
|
|
=> link(forum.last_post.topic.title, to: ~p"/forums/#{forum.last_post.topic.forum}/topics/#{forum.last_post.topic}")
|
|
br
|
|
=> link("Go to post", to: ~p"/forums/#{forum.last_post.topic.forum}/topics/#{forum.last_post.topic}?#{[post_id: forum.last_post.id]}" <> "#post_#{forum.last_post.id}")
|
|
' by
|
|
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: forum.last_post, conn: @conn
|
|
br
|
|
=> pretty_time(forum.last_post.created_at)
|