summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/issues_action.rb
blob: 8b985b6d003c3a28073c5dda69cf9f642216f3ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module IssuesAction
  extend ActiveSupport::Concern
  include IssuableCollections

  def issues
    @label = issues_finder.labels.first

    @issues = issues_collection.
              non_archived.
              page(params[:page])

    @collection_type    = "Issue"
    @issuable_meta_data = issuable_meta_data(@issues, @collection_type)

    respond_to do |format|
      format.html
      format.atom { render layout: false }
    end
  end
end