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 %> -
- Subscribers +
+ Subscribers -

- <%= 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. +

-
- <% prepend_current_user_to(@card.watchers.without(User.system).alphabetically).each do |watcher| %> - <%= avatar_tag watcher %> - <% end %> +
+ <% prepend_current_user_to(@card.watchers.without(User.system).alphabetically).each do |watcher| %> + <%= avatar_tag watcher %> + <% end %> +
+ <% end %> -
-
- <%= button_to_delete_card(@card) %> -
+
+
+ <%= button_to_delete_card(@card) %>
<% end %> diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb index 56ca920bb..ef0989929 100644 --- a/app/views/cards/show.html.erb +++ b/app/views/cards/show.html.erb @@ -32,7 +32,7 @@
<%= render "cards/container", card: @card %> - <% if @card.published? %> + <% if @card.published? || @card.drafted? %> <%= render "cards/messages", card: @card %> <% end %>