2020-07-15 21:09:26 +00:00
|
|
|
- service_desk_enabled = @project.service_desk_enabled?
|
|
|
|
|
|
|
|
- can_edit_project_settings = can?(current_user, :admin_project, @project)
|
2021-03-15 18:09:05 +00:00
|
|
|
- title_text = s_("ServiceDesk|Use Service Desk to connect with your users and offer customer support through email right inside GitLab")
|
2020-07-15 21:09:26 +00:00
|
|
|
|
2020-08-19 12:10:17 +00:00
|
|
|
.non-empty-state.media
|
|
|
|
.svg-content
|
|
|
|
= render 'shared/empty_states/icons/service_desk_callout.svg'
|
2020-07-15 21:09:26 +00:00
|
|
|
|
2020-08-19 12:10:17 +00:00
|
|
|
.gl-mt-3.gl-ml-3
|
|
|
|
%h5= title_text
|
2020-07-15 21:09:26 +00:00
|
|
|
|
2020-08-19 12:10:17 +00:00
|
|
|
- if can_edit_project_settings && service_desk_enabled
|
|
|
|
%p
|
2021-03-15 18:09:05 +00:00
|
|
|
= s_("ServiceDesk|Your users can send emails to this address:")
|
2020-08-19 12:10:17 +00:00
|
|
|
%code= @project.service_desk_address
|
2020-07-15 21:09:26 +00:00
|
|
|
|
2021-03-15 18:09:05 +00:00
|
|
|
%span= s_("ServiceDesk|Issues created from Service Desk emails will appear here. Each comment becomes part of the email conversation.")
|
|
|
|
= link_to _('Learn more.'), help_page_path('user/project/service_desk')
|
2020-07-15 21:09:26 +00:00
|
|
|
|
2020-08-19 12:10:17 +00:00
|
|
|
- if can_edit_project_settings && !service_desk_enabled
|
|
|
|
.gl-mt-3
|
2021-03-15 18:09:05 +00:00
|
|
|
= link_to s_("ServiceDesk|Enable Service Desk"), edit_project_path(@project), class: 'gl-button btn btn-success'
|