mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-21 12:53:11 +01:00
add lock message to topic page
This commit is contained in:
parent
6108dbab3f
commit
7ca81137d7
1 changed files with 10 additions and 0 deletions
|
@ -49,6 +49,16 @@ h1 = @topic.title
|
||||||
.block__header.block__header--light
|
.block__header.block__header--light
|
||||||
= pagination
|
= pagination
|
||||||
|
|
||||||
|
= if @topic.locked_at do
|
||||||
|
h4 This topic has been locked to new posts from non-moderators.
|
||||||
|
p
|
||||||
|
' Locked
|
||||||
|
=> pretty_time(@topic.locked_at)
|
||||||
|
|
||||||
|
p
|
||||||
|
' Lock reason:
|
||||||
|
em = @topic.lock_reason
|
||||||
|
|
||||||
/ Post form
|
/ Post form
|
||||||
= cond do
|
= cond do
|
||||||
- @topic.post_count < 200_000 and can?(@conn, :create_post, @topic) ->
|
- @topic.post_count < 200_000 and can?(@conn, :create_post, @topic) ->
|
||||||
|
|
Loading…
Reference in a new issue