mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 20:56:08 +10:00
19 lines
347 B
Ruby
19 lines
347 B
Ruby
class LabelsController < ProjectResourceController
|
|
before_filter :module_enabled
|
|
|
|
# Allow read any issue
|
|
before_filter :authorize_read_issue!
|
|
|
|
respond_to :js, :html
|
|
|
|
def index
|
|
@labels = @project.issues_labels.order('count DESC')
|
|
end
|
|
|
|
protected
|
|
|
|
def module_enabled
|
|
return render_404 unless @project.issues_enabled
|
|
end
|
|
end
|