Mercurial > hg > soundsoftware-site
comparison app/views/issues/_form.rhtml @ 141:ab75f33dcc6f luisf
Issue #31: issue submitters and assignees are added to the watchers list.
incomplete: there is no option to select/unselect the assignee.
author | luisf |
---|---|
date | Thu, 20 Jan 2011 13:08:43 +0000 |
parents | 11328a082ef3 |
children | 753f1380d6bc |
comparison
equal
deleted
inserted
replaced
116:66c73df314fa | 141:ab75f33dcc6f |
---|---|
33 <% end %> | 33 <% end %> |
34 | 34 |
35 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> | 35 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> |
36 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> | 36 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
37 <% @issue.project.users.sort.each do |user| -%> | 37 <% @issue.project.users.sort.each do |user| -%> |
38 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> | 38 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, !!(@issue.watched_by?(user) or user == User.current) %> <%=h user %></label> |
39 <% end -%> | 39 <% end -%> |
40 </p> | 40 </p> |
41 <% end %> | 41 <% end %> |
42 | 42 |
43 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> | 43 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> |