diff --git a/app/views/cards/_messages.html.erb b/app/views/cards/_messages.html.erb index cbf7a40d0..042c25ed5 100644 --- a/app/views/cards/_messages.html.erb +++ b/app/views/cards/_messages.html.erb @@ -1,23 +1,25 @@ <%= messages_tag(card) do %> - <%= render partial: "cards/comments/comment", collection: card.comments.chronologically, cached: true %> - <%= render "cards/comments/new", card: card %> + <% if card.published? %> + <%= render partial: "cards/comments/comment", collection: card.comments.chronologically, cached: true %> + <%= render "cards/comments/new", card: card %> -
- <%= pluralize(@card.watchers.without(User.system).count, "person") %> will be notified when someone comments on this. -
++ <%= pluralize(@card.watchers.without(User.system).count, "person") %> will be notified when someone comments on this. +
-- <%= button_to_delete_card(@card) %> -
+ <%= button_to_delete_card(@card) %>