2015-11-17 05:03:18 -05:00
|
|
|
module IssuesAction
|
|
|
|
extend ActiveSupport::Concern
|
2016-07-23 19:28:12 -04:00
|
|
|
include IssuableCollections
|
2015-11-17 05:03:18 -05:00
|
|
|
|
|
|
|
def issues
|
2016-07-23 19:28:12 -04:00
|
|
|
@label = issues_finder.labels.first
|
2015-11-17 05:03:18 -05:00
|
|
|
|
2016-07-23 19:28:12 -04:00
|
|
|
@issues = issues_collection
|
|
|
|
.non_archived
|
|
|
|
.preload(:author, :project)
|
|
|
|
.page(params[:page])
|
2016-02-17 08:52:12 -05:00
|
|
|
|
2015-11-17 05:03:18 -05:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.atom { render layout: false }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|