2015-11-17 10:03:18 +00:00
|
|
|
module IssuesAction
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
def issues
|
|
|
|
@issues = get_issues_collection
|
|
|
|
@issues = @issues.page(params[:page]).per(ApplicationController::PER_PAGE)
|
|
|
|
@issues = @issues.preload(:author, :project)
|
|
|
|
|
2016-02-17 13:52:12 +00:00
|
|
|
@label = Label.where(project: @projects).find_by(title: params[:label_name])
|
|
|
|
|
2015-11-17 10:03:18 +00:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.atom { render layout: false }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|