2012-01-09 18:37:16 +00:00
|
|
|
<% if User.current.allowed_to?(:add_issue_watchers, @project) %>
|
2008-08-03 09:14:43 +00:00
|
|
|
<div class="contextual">
|
2011-09-15 09:24:44 +00:00
|
|
|
<%= link_to_remote l(:button_add),
|
2008-08-03 09:14:43 +00:00
|
|
|
:url => {:controller => 'watchers',
|
|
|
|
:action => 'new',
|
|
|
|
:object_type => watched.class.name.underscore,
|
2012-01-09 18:37:16 +00:00
|
|
|
:object_id => watched},
|
2012-01-09 18:46:37 +00:00
|
|
|
:method => 'get',
|
|
|
|
:before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %>
|
2008-08-03 09:14:43 +00:00
|
|
|
</div>
|
2012-01-09 18:37:16 +00:00
|
|
|
<% end %>
|
2008-08-03 09:14:43 +00:00
|
|
|
|
2010-03-13 17:45:41 +00:00
|
|
|
<h3><%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)</h3>
|
2008-08-03 09:14:43 +00:00
|
|
|
|
2010-03-13 17:45:41 +00:00
|
|
|
<%= watchers_list(watched) %>
|