2012-01-09 22:37:16 +04:00
|
|
|
<% if User.current.allowed_to?(:add_issue_watchers, @project) %>
|
2008-08-03 13:14:43 +04:00
|
|
|
<div class="contextual">
|
2012-07-18 20:24:23 +04:00
|
|
|
<%= link_to l(:button_add),
|
|
|
|
{:controller => 'watchers', :action => 'new', :object_type => watched.class.name.underscore, :object_id => watched},
|
|
|
|
:remote => true,
|
|
|
|
:method => 'get' %>
|
2008-08-03 13:14:43 +04:00
|
|
|
</div>
|
2012-01-09 22:37:16 +04:00
|
|
|
<% end %>
|
2008-08-03 13:14:43 +04:00
|
|
|
|
2010-03-13 20:45:41 +03:00
|
|
|
<h3><%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)</h3>
|
2008-08-03 13:14:43 +04:00
|
|
|
|
2010-03-13 20:45:41 +03:00
|
|
|
<%= watchers_list(watched) %>
|