2012-09-27 14:59:42 -04:00
|
|
|
class LabelsController < ProjectResourceController
|
2012-08-24 06:05:40 -04:00
|
|
|
before_filter :module_enabled
|
|
|
|
|
|
|
|
# Allow read any issue
|
|
|
|
before_filter :authorize_read_issue!
|
|
|
|
|
|
|
|
respond_to :js, :html
|
|
|
|
|
|
|
|
def index
|
2012-10-09 13:39:06 -04:00
|
|
|
@labels = @project.issues_labels.order('count DESC')
|
2012-08-24 06:05:40 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def module_enabled
|
|
|
|
return render_404 unless @project.issues_enabled
|
|
|
|
end
|
|
|
|
end
|