don't render the 200k message when it's not 200k

This commit is contained in:
byte[] 2019-12-06 18:25:42 -05:00
parent b89e9c464f
commit c1b92967c6

View file

@ -54,7 +54,7 @@ h1 = @topic.title
- @topic.post_count < 200_000 and can?(@conn, :create_post, @topic) -> - @topic.post_count < 200_000 and can?(@conn, :create_post, @topic) ->
= render PhilomenaWeb.Topic.PostView, "_form.html", conn: @conn, forum: @forum, topic: @topic, changeset: @changeset = render PhilomenaWeb.Topic.PostView, "_form.html", conn: @conn, forum: @forum, topic: @topic, changeset: @changeset
- @topic.post_count < 200_000 -> - @topic.post_count >= 200_000 ->
h3 Okay, we're impressed h3 Okay, we're impressed
p You're looking at a thread with over 200,000 posts in it! p You're looking at a thread with over 200,000 posts in it!
p For various reasons, we'd like to ask you to start a new topic. p For various reasons, we'd like to ask you to start a new topic.