2019-10-12 21:52:04 +05:30
|
|
|
- @can_bulk_update = can?(current_user, :admin_issue, @group) && @group.feature_available?(:group_bulk_edit)
|
2019-09-30 21:07:59 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
- page_title _("Issues")
|
2021-01-03 14:25:43 +05:30
|
|
|
- add_page_specific_style 'page_bundles/issues_list'
|
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: "#{@group.name} issues")
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
- if group_issues_count(state: 'all') == 0
|
2018-03-17 18:26:18 +05:30
|
|
|
= render 'shared/empty_states/issues', project_select_button: true
|
|
|
|
- else
|
2017-08-17 22:00:37 +05:30
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :issues
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-controls
|
2018-11-08 19:23:39 +05:30
|
|
|
= render 'shared/issuable/feed_buttons'
|
2019-09-30 21:07:59 +05:30
|
|
|
|
|
|
|
- if @can_bulk_update
|
2019-10-12 21:52:04 +05:30
|
|
|
= render_if_exists 'shared/issuable/bulk_update_button', type: :issues
|
2019-09-30 21:07:59 +05:30
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
= 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
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'shared/issuable/search_bar', type: :issues
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :issues
|
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
- if Feature.enabled?(:vue_issuables_list, @group)
|
2021-01-03 14:25:43 +05:30
|
|
|
- if use_startup_call?
|
|
|
|
- add_page_startup_api_call(api_v4_groups_issues_path(id: @group.id, params: startup_call_params))
|
2019-12-26 22:10:19 +05:30
|
|
|
.js-issuables-list{ data: { endpoint: expose_url(api_v4_groups_issues_path(id: @group.id)),
|
|
|
|
'can-bulk-edit': @can_bulk_update.to_json,
|
2020-10-24 23:57:45 +05:30
|
|
|
'empty-state-meta': { svg_path: image_path('illustrations/issues.svg') },
|
2021-01-03 14:25:43 +05:30
|
|
|
'sort-key': @sort,
|
2021-01-29 00:20:46 +05:30
|
|
|
type: 'issues',
|
|
|
|
'scoped-labels-available': scoped_labels_available?(@group).to_json } }
|
2019-12-26 22:10:19 +05:30
|
|
|
- else
|
|
|
|
= render 'shared/issues'
|