summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/issues_action.rb
blob: eced9d9d6784a390635b5f3385bc26230bb877c6 (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
              .preload(:author, :project)
              .page(params[:page])

    @all_issues = all_issues_collection.non_archived

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