debian-mirror-gitlab/app/controllers/concerns/issues_action.rb

21 lines
519 B
Ruby
Raw Normal View History

2015-12-23 02:04:40 +05:30
module IssuesAction
extend ActiveSupport::Concern
2016-09-13 17:45:13 +05:30
include IssuableCollections
2015-12-23 02:04:40 +05:30
2018-03-17 18:26:18 +05:30
# rubocop:disable Gitlab/ModuleWithInstanceVariables
2015-12-23 02:04:40 +05:30
def issues
2018-03-17 18:26:18 +05:30
@finder_type = IssuesFinder
@issues = issuables_collection
2016-09-13 17:45:13 +05:30
.non_archived
.page(params[:page])
2016-04-02 18:10:28 +05:30
2018-03-17 18:26:18 +05:30
@issuable_meta_data = issuable_meta_data(@issues, collection_type)
2017-08-17 22:00:37 +05:30
2015-12-23 02:04:40 +05:30
respond_to do |format|
format.html
2017-09-10 17:25:29 +05:30
format.atom { render layout: 'xml.atom' }
2015-12-23 02:04:40 +05:30
end
end
2018-03-17 18:26:18 +05:30
# rubocop:enable Gitlab/ModuleWithInstanceVariables
2015-12-23 02:04:40 +05:30
end