2021-05-03 02:10:30 -04:00
|
|
|
- @can_bulk_update = can?(current_user, :admin_issue, @group) && @group.licensed_feature_available?(:group_bulk_edit)
|
2019-07-09 07:46:16 -04:00
|
|
|
|
2020-06-22 08:08:47 -04:00
|
|
|
- page_title _("Issues")
|
2020-10-05 05:08:17 -04:00
|
|
|
- add_page_specific_style 'page_bundles/issues_list'
|
2015-04-21 10:31:40 -04:00
|
|
|
= content_for :meta_tags do
|
2018-04-08 00:35:30 -04:00
|
|
|
= auto_discovery_link_tag(:atom, safe_params.merge(rss_url_options).to_h, title: "#{@group.name} issues")
|
2015-04-21 10:31:40 -04:00
|
|
|
|
2021-09-15 08:11:13 -04:00
|
|
|
- if Feature.enabled?(:vue_issues_list, @group, default_enabled: :yaml)
|
2021-09-29 05:11:43 -04:00
|
|
|
.js-issues-list{ data: group_issues_list_data(@group, current_user, @issues, @projects) }
|
2021-09-15 08:11:13 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :issues
|
|
|
|
- else
|
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :issues
|
|
|
|
.nav-controls
|
|
|
|
= render 'shared/issuable/feed_buttons'
|
2019-07-09 07:46:16 -04:00
|
|
|
|
2021-09-15 08:11:13 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/bulk_update_button', type: :issues
|
2019-07-09 07:46:16 -04:00
|
|
|
|
2021-09-15 08:11:13 -04:00
|
|
|
= render 'shared/new_project_item_select', path: 'issues/new', label: "New issue", type: :issues, with_feature_enabled: 'issues', with_shared: false, include_projects_in_subgroups: true
|
2021-09-07 11:11:06 -04:00
|
|
|
|
2021-09-15 08:11:13 -04:00
|
|
|
= render 'shared/issuable/search_bar', type: :issues
|
2013-08-15 06:13:22 -04:00
|
|
|
|
2021-09-15 08:11:13 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :issues
|
2019-07-09 07:46:16 -04:00
|
|
|
|
2021-09-15 08:11:13 -04:00
|
|
|
- if Feature.enabled?(:vue_issuables_list, @group) && @issues.to_a.any?
|
|
|
|
- if use_startup_call?
|
|
|
|
- add_page_startup_api_call(api_v4_groups_issues_path(id: @group.id, params: startup_call_params))
|
|
|
|
.js-issuables-list{ data: { endpoint: expose_url(api_v4_groups_issues_path(id: @group.id)),
|
|
|
|
'can-bulk-edit': @can_bulk_update.to_json,
|
|
|
|
'empty-state-meta': { svg_path: image_path('illustrations/issues.svg') },
|
|
|
|
'sort-key': @sort,
|
|
|
|
type: 'issues',
|
|
|
|
'scoped-labels-available': scoped_labels_available?(@group).to_json } }
|
|
|
|
- else
|
|
|
|
= render 'shared/issues', project_select_button: true
|