debian-mirror-gitlab/app/views/projects/issues/index.html.haml

37 lines
1.8 KiB
Text
Raw Normal View History

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
2020-07-28 23:09:34 +05:30
- page_title _("Issues")
2018-03-17 18:26:18 +05:30
- new_issue_email = @project.new_issuable_address(current_user, 'issue')
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/issues_list'
2021-03-11 19:13:27 +05:30
- issuable_type = 'issue'
2015-09-25 12:07:36 +05:30
2015-09-11 14:41:01 +05:30
= content_for :meta_tags do
2018-06-27 16:04:02 +05:30
= auto_discovery_link_tag(:atom, safe_params.merge(rss_url_options).to_h, title: "#{@project.name} issues")
2015-09-11 14:41:01 +05:30
2021-04-17 20:07:23 +05:30
.js-jira-issues-import-status{ data: { can_edit: can?(current_user, :admin_project, @project).to_s,
2020-06-23 00:09:42 +05:30
is_jira_configured: @project.jira_service.present?.to_s,
issues_path: project_issues_path(@project),
project_path: @project.full_path } }
2020-05-24 23:13:21 +05:30
2021-04-29 21:17:54 +05:30
- if Feature.enabled?(:vue_issues_list, @project)
.js-issues-list{ data: issues_list_data(@project, current_user, finder) }
- if @can_bulk_update
= render 'shared/issuable/bulk_update_sidebar', type: :issues
- elsif project_issues(@project).exists?
2019-12-04 20:38:33 +05:30
.top-area
= render 'shared/issuable/nav', type: :issues
= render "projects/issues/nav_btns"
2021-04-29 21:17:54 +05:30
= render 'shared/issuable/search_bar', type: :issues
2016-08-24 12:49:21 +05:30
2021-04-29 21:17:54 +05:30
- if @can_bulk_update
= render 'shared/issuable/bulk_update_sidebar', type: :issues
2017-09-10 17:25:29 +05:30
2021-04-29 21:17:54 +05:30
.issues-holder
= render 'issues'
- if new_issue_email
2021-06-08 01:23:25 +05:30
.gl-text-center.gl-pt-5.gl-pb-7
2021-04-29 21:17:54 +05:30
.js-issueable-by-email{ data: { initial_email: new_issue_email, issuable_type: issuable_type, emails_help_page_path: help_page_path('development/emails', anchor: 'email-namespace'), quick_actions_help_path: help_page_path('user/project/quick_actions'), markdown_help_path: help_page_path('user/markdown'), reset_path: new_issuable_address_project_path(@project, issuable_type: issuable_type) } }
2017-08-17 22:00:37 +05:30
- else
2019-12-21 20:55:43 +05:30
- new_project_issue_button_path = @project.archived? ? false : new_project_issue_path(@project)
= render 'shared/empty_states/issues', new_project_issue_button_path: new_project_issue_button_path, show_import_button: true