mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +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
|
||||
= 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
|
||||
= cond do
|
||||
- @topic.post_count < 200_000 and can?(@conn, :create_post, @topic) ->
|
||||
|
|
Loading…
Reference in a new issue