gitlab-org--gitlab-foss/app/views/projects/issues/index.html.haml

37 lines
1.2 KiB
Text
Raw Normal View History

- @no_container = true
- @can_bulk_update = can?(current_user, :admin_issue, @project)
2015-04-30 13:06:18 -04:00
- page_title "Issues"
2016-06-30 05:08:14 -04:00
- new_issue_email = @project.new_issue_address(current_user)
= content_for :sub_nav do
= render "projects/issues/head"
2016-11-04 17:27:11 -04:00
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'filtered_search'
2016-11-04 17:27:11 -04:00
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, params.merge(rss_url_options), title: "#{@project.name} issues")
2017-06-30 12:52:11 -04:00
- if show_new_nav?
- content_for :breadcrumbs_extra do
= render "projects/issues/nav_btns"
- if project_issues(@project).exists?
%div{ class: (container_class) }
2016-06-24 11:37:49 -04:00
.top-area
= render 'shared/issuable/nav', type: :issues
2017-06-30 12:52:11 -04:00
.nav-controls{ class: ("visible-xs" if show_new_nav?) }
= render "projects/issues/nav_btns"
= render 'shared/issuable/search_bar', type: :issues
2016-06-24 11:37:49 -04:00
- if @can_bulk_update
= render 'shared/issuable/bulk_update_sidebar', 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_project_issue_path(@project)