Show labels specific to project

This commit is contained in:
randx 2012-08-24 15:34:27 +03:00
parent 8d65f51e63
commit d5fcf0f672

View file

@ -14,7 +14,7 @@ class LabelsController < ApplicationController
respond_to :js, :html
def index
@labels = Issue.tag_counts_on(:labels)
@labels = @project.issues.tag_counts_on(:labels).order('count DESC')
end
protected