b80dd3d242
Merge branch 'master' into non-interactive-aws-install Conflicts: doc/installation.md Fix merge mess in installation.md
26 lines
494 B
Ruby
26 lines
494 B
Ruby
class LabelsController < ApplicationController
|
|
before_filter :authenticate_user!
|
|
before_filter :project
|
|
before_filter :module_enabled
|
|
|
|
layout "project"
|
|
|
|
# Authorize
|
|
before_filter :add_project_abilities
|
|
|
|
# Allow read any issue
|
|
before_filter :authorize_read_issue!
|
|
|
|
respond_to :js, :html
|
|
|
|
def index
|
|
@labels = @project.issues.tag_counts_on(:labels).order('count DESC')
|
|
end
|
|
|
|
protected
|
|
|
|
def module_enabled
|
|
return render_404 unless @project.issues_enabled
|
|
end
|
|
end
|