Show only people who have assigned issues in assignee dropdown

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-02-13 13:57:11 +02:00
parent 0f134e54dd
commit 13ecbb04bc
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 2 additions and 1 deletions

View file

@ -29,6 +29,7 @@ class Projects::IssuesController < Projects::ApplicationController
sort_param = params[:sort] || 'newest'
@sort = sort_param.humanize unless sort_param.empty?
@assignees = User.where(id: @project.issues.pluck(:assignee_id))
respond_to do |format|
format.html

View file

@ -49,7 +49,7 @@
Any
= link_to project_filter_path(assignee_id: 0) do
Unassigned
- @project.team.members.sort_by(&:name).each do |user|
- @assignees.sort_by(&:name).each do |user|
%li
= link_to project_filter_path(assignee_id: user.id) do
= image_tag avatar_icon(user.email), class: "avatar s16", alt: ''