2020-08-24 08:10:17 -04:00
|
|
|
- is_project_overview = local_assigns.fetch(:is_project_overview, false)
|
2021-05-17 14:10:42 -04:00
|
|
|
= render 'shared/alerts/positioning_disabled'
|
2020-08-24 08:10:17 -04:00
|
|
|
|
|
|
|
- if Feature.enabled?(:vue_issuables_list, @project) && !is_project_overview
|
2020-08-19 08:10:17 -04:00
|
|
|
- data_endpoint = local_assigns.fetch(:data_endpoint, expose_path(api_v4_projects_issues_path(id: @project.id)))
|
|
|
|
- default_empty_state_meta = { create_issue_path: new_project_issue_path(@project), svg_path: image_path('illustrations/issues.svg') }
|
|
|
|
- data_empty_state_meta = local_assigns.fetch(:data_empty_state_meta, default_empty_state_meta)
|
2020-09-21 05:09:29 -04:00
|
|
|
- type = local_assigns.fetch(:type, 'issues')
|
|
|
|
- if type == 'issues' && use_startup_call?
|
|
|
|
- add_page_startup_api_call(api_v4_projects_issues_path(id: @project.id, params: startup_call_params))
|
2020-08-19 08:10:17 -04:00
|
|
|
.js-issuables-list{ data: { endpoint: data_endpoint,
|
|
|
|
'empty-state-meta': data_empty_state_meta.to_json,
|
2020-06-28 23:09:01 -04:00
|
|
|
'can-bulk-edit': @can_bulk_update.to_json,
|
2020-08-19 08:10:17 -04:00
|
|
|
'sort-key': @sort,
|
2020-11-13 01:09:02 -05:00
|
|
|
type: type,
|
|
|
|
'scoped-labels-available': scoped_labels_available?(@project).to_json } }
|
2020-06-28 23:09:01 -04:00
|
|
|
- else
|
|
|
|
- empty_state_path = local_assigns.fetch(:empty_state_path, 'shared/empty_states/issues')
|
2021-05-17 14:10:42 -04:00
|
|
|
%ul.content-list.issues-list.issuable-list{ class: issue_manual_ordering_class }
|
2020-06-28 23:09:01 -04:00
|
|
|
= render partial: "projects/issues/issue", collection: @issues
|
|
|
|
- if @issues.blank?
|
|
|
|
= render empty_state_path
|
2017-09-06 14:44:59 -04:00
|
|
|
|
2020-06-28 23:09:01 -04:00
|
|
|
- if @issues.present?
|
2020-10-14 14:08:47 -04:00
|
|
|
= paginate_collection @issues, total_pages: @total_pages
|