2020-07-28 23:09:34 +05:30
|
|
|
- @can_bulk_update = false
|
|
|
|
|
|
|
|
- page_title _("Service Desk")
|
2021-01-03 14:25:43 +05:30
|
|
|
- add_page_specific_style 'page_bundles/issues_list'
|
2020-07-28 23:09:34 +05:30
|
|
|
- content_for :breadcrumbs_extra do
|
|
|
|
= render "projects/issues/nav_btns", show_export_button: false, show_rss_button: false
|
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
- support_bot_attrs = { service_desk_enabled: @project.service_desk_enabled?, **UserSerializer.new.represent(User.support_bot) }.to_json
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
- data_endpoint = "#{expose_path(api_v4_projects_issues_path(id: @project.id))}?author_username=#{User.support_bot.username}"
|
2020-10-24 23:57:45 +05:30
|
|
|
|
|
|
|
%div{ class: "js-service-desk-issues service-desk-issues", data: { support_bot: support_bot_attrs, service_desk_meta: service_desk_meta(@project) } }
|
2020-07-28 23:09:34 +05:30
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :issues
|
|
|
|
.nav-controls.d-block.d-sm-none
|
|
|
|
= render "projects/issues/nav_btns", show_feed_buttons: false, show_import_button: false, show_export_button: false
|
|
|
|
|
|
|
|
- if @issues.present?
|
|
|
|
= render 'shared/issuable/search_bar', type: :issues
|
2020-10-24 23:57:45 +05:30
|
|
|
- if Gitlab::ServiceDesk.supported?
|
|
|
|
= render 'service_desk_info_content'
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
-# TODO Remove empty_state_path once vue_issuables_list FF is removed.
|
|
|
|
-# https://gitlab.com/gitlab-org/gitlab/-/issues/235652
|
|
|
|
-# `empty_state_path` is used to render the empty state in the HAML version of issuables list.
|
2020-07-28 23:09:34 +05:30
|
|
|
.issues-holder
|
2020-10-24 23:57:45 +05:30
|
|
|
= render 'projects/issues/issues',
|
|
|
|
empty_state_path: 'service_desk_empty_state',
|
|
|
|
data_endpoint: data_endpoint,
|
|
|
|
data_empty_state_meta: service_desk_meta(@project),
|
|
|
|
type: 'service_desk'
|