diff --git a/app/controllers/cards/watches_controller.rb b/app/controllers/cards/watches_controller.rb index 7556e2000..7308c2279 100644 --- a/app/controllers/cards/watches_controller.rb +++ b/app/controllers/cards/watches_controller.rb @@ -3,11 +3,9 @@ class Cards::WatchesController < ApplicationController def create @card.watch_by Current.user - redirect_back_or_to @card end def destroy @card.unwatch_by Current.user - redirect_back_or_to @card end end diff --git a/app/views/cards/_messages.html.erb b/app/views/cards/_messages.html.erb index f6ab5a37d..144be94cc 100644 --- a/app/views/cards/_messages.html.erb +++ b/app/views/cards/_messages.html.erb @@ -3,19 +3,7 @@ <%= render partial: "cards/comments/comment", collection: card.comments.chronologically, cached: true %> <%= render "cards/comments/new", card: card %> -
- Subscribers - -

- <%= pluralize(@card.watchers.without(User.system).count, "person") %> will be notified when someone comments on this. -

- -
- <% @card.watchers.without(User.system).alphabetically.each do |watcher| %> - <%= avatar_tag watcher %> - <% end %> -
-
+ <%= render "cards/comments/watchers", card: card %> <% end %>