2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2017-09-10 17:25:29 +05:30
|
|
|
- @can_bulk_update = can?(current_user, :admin_issue, @project)
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Issues"
|
2018-03-17 18:26:18 +05:30
|
|
|
- new_issue_email = @project.new_issuable_address(current_user, 'issue')
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
= content_for :meta_tags do
|
2017-08-17 22:00:37 +05:30
|
|
|
= auto_discovery_link_tag(:atom, params.merge(rss_url_options), title: "#{@project.name} issues")
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
- if project_issues(@project).exists?
|
|
|
|
%div{ class: (container_class) }
|
2016-08-24 12:49:21 +05:30
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :issues
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-controls
|
2017-09-10 17:25:29 +05:30
|
|
|
= render "projects/issues/nav_btns"
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/issuable/search_bar', type: :issues
|
2016-08-24 12:49:21 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
= render 'shared/issuable/bulk_update_sidebar', type: :issues
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
.issues-holder
|
2016-09-13 17:45:13 +05:30
|
|
|
= render 'issues'
|
|
|
|
- if new_issue_email
|
2018-03-17 18:26:18 +05:30
|
|
|
= render 'projects/issuable_by_email', email: new_issue_email, issuable_type: 'issue'
|
2017-08-17 22:00:37 +05:30
|
|
|
- else
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'shared/empty_states/issues', button_path: new_project_issue_path(@project)
|