Commit 1e85d70d authored by Filipa Lacerda's avatar Filipa Lacerda

Adds i18n for empty state

parent 103a5bcc
......@@ -4,7 +4,7 @@
- callout_selector = is_empty_state ? 'empty-state' : 'non-empty-state media'
- svg_path = !is_empty_state ? 'shared/empty_states/icons/service_desk_callout.svg' : 'shared/empty_states/icons/service_desk_empty_state.svg'
- can_edit_project_settings = can?(current_user, :admin_project, @project)
- title_text = "Use Service Desk to connect with your users (e.g. to offer customer support) through email right inside GitLab"
- title_text = _("Use Service Desk to connect with your users (e.g. to offer customer support) through email right inside GitLab")
%div{ class: "#{callout_selector}" }
.svg-content
......@@ -18,12 +18,12 @@
- if service_desk_enabled
%p
Have your users email
= _("Have your users email")
%code= @project.service_desk_address
%span Those emails automatically become issues (with the comments becoming the email conversation) listed here.
= link_to 'Read more', help_page_path('user/project/service_desk')
%span= _("Those emails automatically become issues (with the comments becoming the email conversation) listed here.")
= link_to _('Read more'), help_page_path('user/project/service_desk')
- if can_edit_project_settings && !service_desk_enabled
%div{ class: is_empty_state ? "text-center" : "prepend-top-10" }
= link_to "Turn on Service Desk", edit_project_path(@project), class: 'btn btn-success'
= link_to _("Turn on Service Desk"), edit_project_path(@project), class: 'btn btn-success'
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment