summaryrefslogtreecommitdiffstats
path: root/app/views/watchers/_watchers.html.erb
blob: 697d0bd8e2de4d2356bcfc9ecf9e877352a9c249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<% if User.current.allowed_to?(:add_issue_watchers, @project) %>
<div class="contextual">
<%= link_to l(:button_add),
      {:controller => 'watchers', :action => 'new', :object_type => watched.class.name.underscore, :object_id => watched},
      :remote => true,
      :method => 'get' %>
</div>
<% end %>

<h3><%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)</h3>

<%= watchers_list(watched) %>