2020-07-28 23:09:34 +05:30
|
|
|
- service_desk_enabled = @project.service_desk_enabled?
|
|
|
|
|
|
|
|
- can_edit_project_settings = can?(current_user, :admin_project, @project)
|
2021-04-17 20:07:23 +05:30
|
|
|
- title_text = s_("ServiceDesk|Use Service Desk to connect with your users and offer customer support through email right inside GitLab")
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
.non-empty-state.media
|
|
|
|
.svg-content
|
|
|
|
= render 'shared/empty_states/icons/service_desk_callout.svg'
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
.gl-mt-3.gl-ml-3
|
|
|
|
%h5= title_text
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
- if can_edit_project_settings && service_desk_enabled
|
|
|
|
%p
|
2021-04-17 20:07:23 +05:30
|
|
|
= s_("ServiceDesk|Your users can send emails to this address:")
|
2020-10-24 23:57:45 +05:30
|
|
|
%code= @project.service_desk_address
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
%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-28 23:09:34 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
- if can_edit_project_settings && !service_desk_enabled
|
|
|
|
.gl-mt-3
|
2021-04-17 20:07:23 +05:30
|
|
|
= link_to s_("ServiceDesk|Enable Service Desk"), edit_project_path(@project), class: 'gl-button btn btn-success'
|