2020-06-29 03:09:01 +00:00
|
|
|
- if Feature.enabled?(:vue_issuables_list, @project)
|
|
|
|
.js-issuables-list{ data: { endpoint: expose_url(api_v4_projects_issues_path(id: @project.id)),
|
2020-08-05 00:09:52 +00:00
|
|
|
'create_issue_path': expose_url(new_project_issue_path(@project)),
|
2020-06-29 03:09:01 +00:00
|
|
|
'can-bulk-edit': @can_bulk_update.to_json,
|
|
|
|
'empty-svg-path': image_path('illustrations/issues.svg'),
|
|
|
|
'sort-key': @sort } }
|
|
|
|
- else
|
|
|
|
- empty_state_path = local_assigns.fetch(:empty_state_path, 'shared/empty_states/issues')
|
|
|
|
%ul.content-list.issues-list.issuable-list{ class: ("manual-ordering" if @sort == 'relative_position') }
|
|
|
|
= render partial: "projects/issues/issue", collection: @issues
|
|
|
|
- if @issues.blank?
|
|
|
|
= render empty_state_path
|
2017-09-06 18:44:59 +00:00
|
|
|
|
2020-06-29 03:09:01 +00:00
|
|
|
- if @issues.present?
|
|
|
|
= paginate @issues, theme: "gitlab", total_pages: @total_pages
|