2015-11-17 10:03:18 +00:00
|
|
|
module IssuesAction
|
|
|
|
extend ActiveSupport::Concern
|
2016-07-23 23:28:12 +00:00
|
|
|
include IssuableCollections
|
2015-11-17 10:03:18 +00:00
|
|
|
|
|
|
|
def issues
|
2016-07-23 23:28:12 +00:00
|
|
|
@label = issues_finder.labels.first
|
2015-11-17 10:03:18 +00:00
|
|
|
|
2016-07-23 23:28:12 +00:00
|
|
|
@issues = issues_collection
|
|
|
|
.non_archived
|
|
|
|
.page(params[:page])
|
2016-02-17 13:52:12 +00:00
|
|
|
|
2017-01-23 20:40:25 +00:00
|
|
|
@collection_type = "Issue"
|
2017-02-16 21:30:00 +00:00
|
|
|
@issuable_meta_data = issuable_meta_data(@issues, @collection_type)
|
2017-01-23 20:40:25 +00:00
|
|
|
|
2015-11-17 10:03:18 +00:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
2017-06-12 17:21:13 +00:00
|
|
|
format.atom { render layout: 'xml.atom' }
|
2015-11-17 10:03:18 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|