To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / watchers / _watchers.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (1.13 KB)

1 0:513646585e45 Chris
<div class="contextual">
2 909:cbb26bc654de Chris
<%= link_to_remote l(:button_add),
3 0:513646585e45 Chris
                   :url => {:controller => 'watchers',
4
                            :action => 'new',
5
                            :object_type => watched.class.name.underscore,
6
                            :object_id => watched} if User.current.allowed_to?(:add_issue_watchers, @project) %>
7
</div>
8
9
<h3><%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)</h3>
10
11
<% unless @watcher.nil? %>
12 909:cbb26bc654de Chris
  <% remote_form_for(:watcher, @watcher,
13
                     :url => {:controller => 'watchers',
14
                              :action => 'new',
15
                              :object_type => watched.class.name.underscore,
16
                              :object_id => watched},
17
                      :method => :post,
18
                     :html => {:id => 'new-watcher-form'}) do |f| %>
19
    <p><%= f.select :user_id, (watched.addable_watcher_users.collect {|m| [m.name, m.id]}), :prompt => "--- #{l(:actionview_instancetag_blank_option)} ---" %>
20 0:513646585e45 Chris
21 909:cbb26bc654de Chris
    <%= submit_tag l(:button_add) %>
22
    <%= toggle_link l(:button_cancel), 'new-watcher-form'%></p>
23
  <% end %>
24 0:513646585e45 Chris
<% end %>
25
26
<%= watchers_list(watched) %>