Project

General

Profile

Patch #15833 » 0001-Adding-watcher-icon-for-new-issue-form.patch

the patch against trunk - Lukas Zapletal, 2014-01-09 15:08

View differences:

app/views/issues/new.html.erb
<% if @issue.safe_attribute? 'watcher_user_ids' -%>
<p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
<span id="watchers_inputs">
<%= watchers_checkboxes(@issue, @available_watchers) %>
</span>
<%= link_to_function image_tag('edit.png'), '$(this).hide(); $("#issue_watchers").show()' %>
<%= content_tag 'span', :id => "issue_watchers", :style => 'display:none' do %>
<span id="watchers_inputs">
<%= watchers_checkboxes(@issue, @available_watchers) %>
</span>
<% end %>
<span class="search_for_watchers">
<%= link_to l(:label_search_for_watchers),
{:controller => 'watchers', :action => 'new', :project_id => @issue.project},
(1-1/2)