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
|
|
|
|
2017-11-22 02:50:36 -05:00
|
|
|
# rubocop:disable Gitlab/ModuleWithInstanceVariables
|
2015-11-17 05:03:18 -05:00
|
|
|
def issues
|
2017-11-07 08:34:12 -05:00
|
|
|
@finder_type = IssuesFinder
|
|
|
|
@issues = issuables_collection
|
2016-07-23 19:28:12 -04:00
|
|
|
.non_archived
|
|
|
|
.page(params[:page])
|
2016-02-17 08:52:12 -05:00
|
|
|
|
2017-11-07 08:34:12 -05:00
|
|
|
@issuable_meta_data = issuable_meta_data(@issues, collection_type)
|
2017-01-23 15:40:25 -05:00
|
|
|
|
2015-11-17 05:03:18 -05:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
2017-06-12 13:21:13 -04:00
|
|
|
format.atom { render layout: 'xml.atom' }
|
2015-11-17 05:03:18 -05:00
|
|
|
end
|
|
|
|
end
|
2017-11-22 02:50:36 -05:00
|
|
|
# rubocop:enable Gitlab/ModuleWithInstanceVariables
|
2015-11-17 05:03:18 -05:00
|
|
|
end
|