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">
|
2011-09-15 13:24:44 +04:00
|
|
|
<%= link_to_remote l(:button_add),
|
2008-08-03 13:14:43 +04:00
|
|
|
:url => {:controller => 'watchers',
|
|
|
|
:action => 'new',
|
|
|
|
:object_type => watched.class.name.underscore,
|
2012-01-09 22:37:16 +04:00
|
|
|
:object_id => watched},
|
2012-01-09 22:46:37 +04:00
|
|
|
:method => 'get',
|
|
|
|
:before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %>
|
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) %>
|