annotate .svn/pristine/1a/1a82d923d734db1f664f7d362dd31d181914982f.svn-base @ 1516:b450a9d58aed redmine-2.4

Update to Redmine SVN revision 13356 on 2.4-stable branch
author Chris Cannam
date Tue, 09 Sep 2014 09:28:31 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <div class="contextual">
Chris@909 2 <%= link_to_remote l(:button_add),
Chris@909 3 :url => {:controller => 'watchers',
Chris@909 4 :action => 'new',
Chris@909 5 :object_type => watched.class.name.underscore,
Chris@909 6 :object_id => watched} if User.current.allowed_to?(:add_issue_watchers, @project) %>
Chris@909 7 </div>
Chris@909 8
Chris@909 9 <h3><%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)</h3>
Chris@909 10
Chris@909 11 <% unless @watcher.nil? %>
Chris@909 12 <% remote_form_for(:watcher, @watcher,
Chris@909 13 :url => {:controller => 'watchers',
Chris@909 14 :action => 'new',
Chris@909 15 :object_type => watched.class.name.underscore,
Chris@909 16 :object_id => watched},
Chris@909 17 :method => :post,
Chris@909 18 :html => {:id => 'new-watcher-form'}) do |f| %>
Chris@909 19 <p><%= f.select :user_id, (watched.addable_watcher_users.collect {|m| [m.name, m.id]}), :prompt => "--- #{l(:actionview_instancetag_blank_option)} ---" %>
Chris@909 20
Chris@909 21 <%= submit_tag l(:button_add) %>
Chris@909 22 <%= toggle_link l(:button_cancel), 'new-watcher-form'%></p>
Chris@909 23 <% end %>
Chris@909 24 <% end %>
Chris@909 25
Chris@909 26 <%= watchers_list(watched) %>