BigW Consortium Gitlab

index.html.haml 1.69 KB
Newer Older
1
- @no_container = true
2 3
- @bulk_edit = can?(current_user, :admin_issue, @project)

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

Clement Ho committed
9
- content_for :page_specific_javascripts do
10
  = page_specific_javascript_bundle_tag('filtered_search')
Clement Ho committed
11

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

15 16
- if project_issues(@project).exists?
  %div{ class: (container_class) }
17 18 19
    .top-area
      = render 'shared/issuable/nav', type: :issues
      .nav-controls
20 21
        = link_to params.merge(rss_url_options), class: 'btn append-right-10 has-tooltip', title: 'Subscribe' do
          = icon('rss')
22
        - if can? current_user, :create_issue, @project
23 24 25 26 27 28 29
          = 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
30
            New Issue
31
    = render 'shared/issuable/search_bar', type: :issues
32

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