@@ -1,15 +1,12 | |||
|
1 | 1 | <% if User.current.allowed_to?(:add_issue_watchers, @project) %> |
|
2 | 2 | <div class="contextual"> |
|
3 |
<%= link_to |
|
|
4 | :url => {:controller => 'watchers', | |
|
5 | :action => 'new', | |
|
6 | :object_type => watched.class.name.underscore, | |
|
7 | :object_id => watched}, | |
|
8 | :method => 'get', | |
|
9 | :before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %> | |
|
3 | <%= link_to l(:button_add), | |
|
4 | {:controller => 'watchers', :action => 'new', :object_type => watched.class.name.underscore, :object_id => watched}, | |
|
5 | :remote => true, | |
|
6 | :method => 'get' %> | |
|
10 | 7 | </div> |
|
11 | 8 | <% end %> |
|
12 | 9 | |
|
13 | 10 | <h3><%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)</h3> |
|
14 | 11 | |
|
15 | 12 | <%= watchers_list(watched) %> |
General Comments 0
You need to be logged in to leave comments.
Login now