summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/index.html.haml
blob: 60900e9d660ab401fc26fb3d7a57236891623b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- @no_container = true
- @bulk_edit = can?(current_user, :admin_issue, @project)

- page_title "Issues"
- new_issue_email = @project.new_issue_address(current_user)
= content_for :sub_nav do
  = render "projects/issues/head"

- content_for :page_specific_javascripts do
  = webpack_bundle_tag 'common_vue'
  = webpack_bundle_tag 'filtered_search'

= content_for :meta_tags do
  = auto_discovery_link_tag(:atom, params.merge(rss_url_options), title: "#{@project.name} issues")

- if project_issues(@project).exists?
  %div{ class: (container_class) }
    .top-area
      = render 'shared/issuable/nav', type: :issues
      .nav-controls
        = link_to params.merge(rss_url_options), class: 'btn append-right-10 has-tooltip', title: 'Subscribe' do
          = icon('rss')
        = link_to new_namespace_project_issue_path(@project.namespace,
                                                   @project,
                                                   issue: { assignee_id: issues_finder.assignee.try(:id),
                                                            milestone_id: issues_finder.milestones.first.try(:id) }),
                                                   class: "btn btn-new",
                                                   title: "New issue",
                                                   id: "new_issue_link" do
          New issue
    = render 'shared/issuable/search_bar', type: :issues

    .issues-holder
      = render 'issues'
      - if new_issue_email
        = render 'issue_by_email', email: new_issue_email
- else
  = render 'shared/empty_states/issues', button_path: new_namespace_project_issue_path(@project.namespace, @project)