_watchers.html.erb
15 lines
| 641 B
| text/plain
|
TextLexer
|
r8472 | <% if User.current.allowed_to?(:add_issue_watchers, @project) %> | ||
|
r1711 | <div class="contextual"> | ||
|
r7117 | <%= link_to_remote l(:button_add), | ||
|
r1711 | :url => {:controller => 'watchers', | ||
:action => 'new', | ||||
:object_type => watched.class.name.underscore, | ||||
|
r8472 | :object_id => watched}, | ||
|
r8473 | :method => 'get', | ||
:before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %> | ||||
|
r1711 | </div> | ||
|
r8472 | <% end %> | ||
|
r1711 | |||
|
r3465 | <h3><%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)</h3> | ||
|
r1711 | |||
|
r3465 | <%= watchers_list(watched) %> | ||